From 1f6e55a0dc512e000395e08c8ea3a4cb8684e676 Mon Sep 17 00:00:00 2001
From: dong <58670809@qq.com>
Date: Mon, 27 Nov 2023 13:26:44 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E6=B7=BB=E5=8A=A0lo?=
=?UTF-8?q?ading=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/UserLogin.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/pages/UserLogin.vue b/src/pages/UserLogin.vue
index e5d2501..fff4915 100644
--- a/src/pages/UserLogin.vue
+++ b/src/pages/UserLogin.vue
@@ -48,6 +48,7 @@
+
@@ -56,7 +57,7 @@ import { useQuasar } from 'quasar';
import { ApiError } from 'src/boot/axios';
import { login } from 'src/api/UserApi';
import { clearJwtToken, saveJwtToken } from 'src/configs/TokenManage';
-import { reactive } from 'vue';
+import { reactive, ref } from 'vue';
import { useRouter } from 'vue-router';
const $q = useQuasar();
@@ -69,6 +70,7 @@ const loginInfo = reactive({
async function doLogin() {
try {
+ visible.value = true;
clearJwtToken();
const token = await login(loginInfo);
saveJwtToken(token);
@@ -81,6 +83,8 @@ async function doLogin() {
});
}
}
+
+const visible = ref(false);