fix: 处理菜单权限相关判断与筛选问题
This commit is contained in:
@@ -4,6 +4,7 @@ import { useEffect } from './useEffect';
|
||||
import { useMenuStore } from '@/stores/menuStore';
|
||||
import { usePermissionStore } from '@/stores/permissionStore';
|
||||
import { useTabsStore } from '@/stores/tabsStore';
|
||||
import { clearAuthDataCache } from '@/api/menu';
|
||||
import router from '@/router';
|
||||
|
||||
const TOKEN_KEY = 'MY_APP_AUTH_TOKEN';
|
||||
@@ -54,6 +55,7 @@ function createAuth() {
|
||||
clearTabs();
|
||||
clearMenu();
|
||||
clearPermissions();
|
||||
clearAuthDataCache();
|
||||
|
||||
router.push('/login');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user