修复了部分bug

This commit is contained in:
Xiaoyu 2025-02-20 00:22:34 +08:00
parent 4ac5b76fff
commit 85dcc74e11
3 changed files with 13 additions and 2 deletions

View File

@ -2,9 +2,9 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title> <title>智慧湿地管理平台</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -1,5 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { RouterView } from "vue-router"; import { RouterView } from "vue-router";
import { onMounted } from 'vue';
onMounted(() => {
document.title = '智慧湿地管理平台';
});
</script> </script>
<template> <template>

View File

@ -60,6 +60,12 @@ const handleLogin = async (formEl: any) => {
detail: "用户登录成功", detail: "用户登录成功",
}); });
//
ElMessage.success({
message: '登录成功,欢迎回来',
duration: 2000
});
// //
const redirect = route.query.redirect as string; const redirect = route.query.redirect as string;
router.push(redirect || "/dashboard"); router.push(redirect || "/dashboard");