pinina数据持久化
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
|
||||
// 获取系统配置信息
|
||||
await store.getSysConfig();
|
||||
console.log(permissionStore.addRouters.length)
|
||||
console.log(permissionStore.addRouters.length,store.token)
|
||||
// 判断用户Token是否获取
|
||||
if (to.name !== 'login' && !store.token) {
|
||||
next({ name: 'login' });
|
||||
|
||||
Reference in New Issue
Block a user