每次切换页面时在刷新用户信息
This commit is contained in:
@@ -46,7 +46,7 @@ export const injectRouter = (router) => {
|
||||
|
||||
router.beforeEach(async (to, from) => {
|
||||
// 如果是从blog跳转过来的判断是否登陆,如果登陆则写入storage
|
||||
// await account.checkIsLogin();
|
||||
await account.checkIsLogin();
|
||||
// 判断命名空间类型
|
||||
const globalStore = useGlobalInfoStore();
|
||||
globalStore.setNamespaceType(-1); // 重置namespaceType,防止非组织路由请求组织信息
|
||||
|
||||
Reference in New Issue
Block a user