mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化
This commit is contained in:
parent
e2e573844b
commit
2f820e2972
@ -127,13 +127,12 @@ async function toLogin() {
|
|||||||
|
|
||||||
// 跳转首页
|
// 跳转首页
|
||||||
router.push("/");
|
router.push("/");
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// 刷新验证码
|
// 刷新验证码
|
||||||
refs.picCaptcha.refresh();
|
refs.picCaptcha.refresh();
|
||||||
|
|
||||||
if (err instanceof Error) {
|
// 提示错误
|
||||||
ElMessage.error(err.message);
|
ElMessage.error(err.message);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
saving.value = false;
|
saving.value = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user