refactor: 抽象操作日志模块

This commit is contained in:
陈淳
2023-02-22 16:49:24 +08:00
parent fa4e0b3752
commit 99aa7d3361
43 changed files with 415 additions and 212 deletions

View File

@@ -12,14 +12,16 @@ router.beforeEach((to, from, next) => {
next({ path: '/login' });
}
} else { //如果有user还要向后端请求是否过期
store.dispatch("Logged").then(resp => {
if (!resp.status) //表示已经过期
{
store.dispatch("Logout");
next({ path: '/login' });
} else {
next();
}
})
next();
// store.dispatch("Logged").then(resp => {
// if (!resp.status) //表示已经过期
// {
// store.dispatch("Logout");
// next({ path: '/login' });
// } else {
// next();
// }
// })
}
})