fix: 处理菜单权限相关判断与筛选问题

This commit is contained in:
ZhuRui
2026-08-04 10:16:32 +08:00
parent a45bdf8c4e
commit 6d72c29a33
6 changed files with 177 additions and 44 deletions
+2
View File
@@ -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');
};