提交 b74ff104 authored 作者: lidongxu's avatar lidongxu

fix(login): 勤策快捷登录失败时_还可以看到登录页面

同上
上级 cda54efd
...@@ -65,6 +65,7 @@ body .el-loading-mask{ ...@@ -65,6 +65,7 @@ body .el-loading-mask{
flex-direction: column; flex-direction: column;
height: 80vh; height: 80vh;
padding: 20px; padding: 20px;
--el-dialog-width: 80vw !important;
.el-dialog__header { .el-dialog__header {
padding-top: 10px; padding-top: 10px;
......
...@@ -47,6 +47,8 @@ export default defineStore( ...@@ -47,6 +47,8 @@ export default defineStore(
setToken(res.access_token) setToken(res.access_token)
this.token = res.access_token this.token = res.access_token
resolve() resolve()
}).catch(error => {
reject(error)
}) })
} }
}) })
......
...@@ -122,6 +122,7 @@ const loginByType = async (type, data) => { ...@@ -122,6 +122,7 @@ const loginByType = async (type, data) => {
router.push({ path: redirect.value || "/" }); router.push({ path: redirect.value || "/" });
}).catch(() => { }).catch(() => {
loading.value = false; loading.value = false;
isShowLogin.value = true;
}); });
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论