From fd33ab0c73b0e7f2ac332fd01f831a91a626a136 Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Sat, 4 Jul 2026 03:42:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BB=A3=E7=A0=81=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/app/menu.ts | 2 +- .../src/store/modules/app/menu.ts | 2 +- .../src/store/modules/app/menu.ts | 2 +- .../src/store/modules/app/menu.ts | 2 +- .../src/store/modules/app/menu.ts | 2 +- .../src/store/modules/app/menu.ts | 2 +- .../src/store/modules/app/menu.ts | 2 +- apps/core/src/store/modules/app/menu.ts | 2 +- apps/example/src/store/modules/app/menu.ts | 2 +- apps/example/src/views/ui_example/index.vue | 2 +- pnpm-lock.yaml | 42 +++++++++---------- pnpm-workspace.yaml | 2 +- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/apps/core-ant-design-vue/src/store/modules/app/menu.ts b/apps/core-ant-design-vue/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-ant-design-vue/src/store/modules/app/menu.ts +++ b/apps/core-ant-design-vue/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core-antdv-next/src/store/modules/app/menu.ts b/apps/core-antdv-next/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-antdv-next/src/store/modules/app/menu.ts +++ b/apps/core-antdv-next/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core-arco-design-vue/src/store/modules/app/menu.ts b/apps/core-arco-design-vue/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-arco-design-vue/src/store/modules/app/menu.ts +++ b/apps/core-arco-design-vue/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core-element-plus/src/store/modules/app/menu.ts b/apps/core-element-plus/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-element-plus/src/store/modules/app/menu.ts +++ b/apps/core-element-plus/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core-naive-ui/src/store/modules/app/menu.ts b/apps/core-naive-ui/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-naive-ui/src/store/modules/app/menu.ts +++ b/apps/core-naive-ui/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core-tdesign/src/store/modules/app/menu.ts b/apps/core-tdesign/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-tdesign/src/store/modules/app/menu.ts +++ b/apps/core-tdesign/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core-vexip-ui/src/store/modules/app/menu.ts b/apps/core-vexip-ui/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core-vexip-ui/src/store/modules/app/menu.ts +++ b/apps/core-vexip-ui/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/core/src/store/modules/app/menu.ts b/apps/core/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/core/src/store/modules/app/menu.ts +++ b/apps/core/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/example/src/store/modules/app/menu.ts b/apps/example/src/store/modules/app/menu.ts index 1dd9e34d..fe64eac0 100755 --- a/apps/example/src/store/modules/app/menu.ts +++ b/apps/example/src/store/modules/app/menu.ts @@ -180,7 +180,7 @@ export const useAppMenuStore = defineStore( if (item.children) { return isPathInMenus(item.children, path) } - return path.indexOf(`${item.path}/`) === 0 || path === item.path + return path.startsWith(`${item.path}/`) || path === item.path }) return flag } diff --git a/apps/example/src/views/ui_example/index.vue b/apps/example/src/views/ui_example/index.vue index 2b7a45eb..40c22e21 100755 --- a/apps/example/src/views/ui_example/index.vue +++ b/apps/example/src/views/ui_example/index.vue @@ -77,7 +77,7 @@ function openGuide() { -
+