修复了部分bug
This commit is contained in:
parent
4ac5b76fff
commit
85dcc74e11
@ -2,9 +2,9 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<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" />
|
||||
<title>Vite + Vue + TS</title>
|
||||
<title>智慧湿地管理平台</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from "vue-router";
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
onMounted(() => {
|
||||
document.title = '智慧湿地管理平台';
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@ -60,6 +60,12 @@ const handleLogin = async (formEl: any) => {
|
||||
detail: "用户登录成功",
|
||||
});
|
||||
|
||||
// 显示登录成功提示
|
||||
ElMessage.success({
|
||||
message: '登录成功,欢迎回来',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
// 获取重定向地址
|
||||
const redirect = route.query.redirect as string;
|
||||
router.push(redirect || "/dashboard");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user