fix(菜单): 不显示的模块菜单跳转拦截

This commit is contained in:
baiqi 2024-11-25 15:53:06 +08:00 committed by 刘瑞斌
parent 63189f3ca0
commit c8ea1a4bba
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import defaultSettings from '@/config/settings.json';
import { useI18n } from '@/hooks/useI18n';
import useUser from '@/hooks/useUser';
import router from '@/router';
import { NO_PROJECT_ROUTE_NAME } from '@/router/constants';
import { featureRouteMap, NO_PROJECT_ROUTE_NAME } from '@/router/constants';
import { watchStyle, watchTheme } from '@/utils/theme';
import type { EnvironmentItem } from '@/models/projectManagement/environmental';
@ -60,7 +60,7 @@ const useAppStore = defineStore('app', {
defaultLoginConfig,
defaultPlatformConfig,
innerHeight: 0,
currentMenuConfig: [],
currentMenuConfig: Object.keys(featureRouteMap),
pageConfig: {
...defaultThemeConfig,
...defaultLoginConfig,