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 是否拔出