fix: 接口报错时 loading 消失

develop
时启龙 2024-08-26 10:38:22 +08:00
parent 57ea72c3d7
commit a130aab32e
1 changed files with 2 additions and 1 deletions

View File

@ -127,11 +127,12 @@ function handleLogin() {
account, account,
password: encrypt(password), password: encrypt(password),
isManager: true isManager: true
}).finally(() => {
loading.value = false
}) })
if (res.success) { if (res.success) {
goLogin(res.data) goLogin(res.data)
} }
loading.value = false
} }
}) })
} }