登录:登录异常添加提示信息

This commit is contained in:
高云鹏 2024-10-21 09:53:31 +08:00
parent 82c2246e2f
commit 0ed2786762

View File

@ -98,6 +98,7 @@ import router from '/@/router'
import toggleDark from '/@/utils/useDark'
import { fullUrl } from '/@/utils/common'
import { adminBaseRoutePath } from '/@/router/static/adminBase'
import { log } from '/@/api/backend/routine/AdminInfo'
let timer: number
const config = useConfig()
@ -205,6 +206,14 @@ const onSubmit = () => {
load()
}
})
.catch((err) => {
ElNotification({
message: err?.msg ?? '登录失败',
type: 'error',
})
load()
})
.finally(() => {
state.submitLoading = false
// load()