From 0ed278676275a3b85eff98f0d841e55eb00b607b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E4=BA=91=E9=B9=8F?= Date: Mon, 21 Oct 2024 09:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=EF=BC=9A=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/dasadmin/src/views/backend/login.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/dasadmin/src/views/backend/login.vue b/ui/dasadmin/src/views/backend/login.vue index 363b1a69..a45b14c1 100644 --- a/ui/dasadmin/src/views/backend/login.vue +++ b/ui/dasadmin/src/views/backend/login.vue @@ -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()