From 83b3073a4750c12d9c3aeccdb084b77af6b67556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Wed, 28 Aug 2024 15:30:28 +0800 Subject: [PATCH] fix: m --- src/views/login/login.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 3c1ca9e..9ef124e 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -148,7 +148,10 @@ async function handleUkeyLogin() { console.log('UKEY: 密码校验通过') console.log('store', store) loading.value = true - const res = await store.dispatch('ukey/Login', loginForm.ukeyPassword).finally(() => (loading.value = false)) + const res = await store + .dispatch('ukey/Login', loginForm.ukeyPassword) + .finally(() => (loading.value = false)) + .catch(() => (loading.value = false)) if (res && res.success) { console.log('UKEY: 登录成功,云管融合登录接口返回', res) // 用于保活与监测 ukey 是否拔出