改进 登录
This commit is contained in:
parent
e1db06b126
commit
298e9c005c
@ -68,7 +68,7 @@ router.beforeEach((to, from) => {
|
||||
if (to.meta.auth == true) {
|
||||
// validate login state
|
||||
if (userStore.jwt_token == null) {
|
||||
router.push({ path: "auth/login" });
|
||||
router.push({ name: "login" });
|
||||
}
|
||||
} else {
|
||||
document.title = configStore.getAppName();
|
||||
|
@ -102,7 +102,8 @@ const validate = () => {
|
||||
console.log(userStore.expired_at);
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
// window.location.href = "/";
|
||||
router.push("/");
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user