From c8ea1a4bbada6cc64e777a745962ddc6f130f2a4 Mon Sep 17 00:00:00 2001 From: baiqi Date: Mon, 25 Nov 2024 15:53:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=8F=9C=E5=8D=95):=20=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E6=A8=A1=E5=9D=97=E8=8F=9C=E5=8D=95=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/modules/app/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/store/modules/app/index.ts b/frontend/src/store/modules/app/index.ts index a9b8f49ee8..70b3e896e5 100644 --- a/frontend/src/store/modules/app/index.ts +++ b/frontend/src/store/modules/app/index.ts @@ -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,