优化
This commit is contained in:
@@ -41,7 +41,11 @@ async function submit() {
|
||||
: requestedPath
|
||||
await router.replace(targetPath)
|
||||
} catch (error) {
|
||||
loginError.value = getApiErrorDetails(error, '登录失败,请检查账号和密码后重试')
|
||||
loginError.value = getApiErrorDetails(
|
||||
error,
|
||||
'登录失败,请检查账号和密码后重试',
|
||||
{ preserveAuthenticationMessage: true },
|
||||
)
|
||||
ElMessage.error(loginError.value.message)
|
||||
} finally {
|
||||
loading.value = false
|
||||
|
||||
Reference in New Issue
Block a user