From 26f4b358d02db7b7c7cb74998c57670e8e93af0d Mon Sep 17 00:00:00 2001 From: zhangrenyuan <18990852002@163.com> Date: Wed, 29 Oct 2025 11:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/login.vue b/src/views/login.vue index 9fa8503..04fd1c2 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -93,10 +93,12 @@ const login = async function () { form.value.password = '' form.value.account = '' ElMessage.error(result.msg) + loading.value = false //登录失败时重置loading状态 } } catch (error) { console.log('请求失败', error) ElMessage.error('登录失败,请检查账号密码') + loading.value = false // 发生异常时重置loading状态 } } //获取菜单树 @@ -278,4 +280,4 @@ onMounted(() => { linear-gradient(in oklch longer hue -2deg, #a00, #a00); background-size: 100% 2px, 100% 100%, 100% 100%; } - + \ No newline at end of file