From e7459bc46040941574cb8fa3460e93606ae74b40 Mon Sep 17 00:00:00 2001
From: yuanzbz <3517876561@qq.com>
Date: Sun, 28 May 2023 22:12:29 +0800
Subject: [PATCH] y
---
src/layout/LayoutHorizontal/HeaderHorizontal/index.vue | 2 +-
src/layout/components/Sidebar/index.vue | 2 +-
src/layout/components/SubMenu/SubItem.vue | 10 +++++-----
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/layout/LayoutHorizontal/HeaderHorizontal/index.vue b/src/layout/LayoutHorizontal/HeaderHorizontal/index.vue
index f42ad73..6c4f324 100644
--- a/src/layout/LayoutHorizontal/HeaderHorizontal/index.vue
+++ b/src/layout/LayoutHorizontal/HeaderHorizontal/index.vue
@@ -20,7 +20,7 @@
v-for="route in permission_routes"
:key="route.path"
:item="route"
- :base-path="route.path"
+
/>
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 0f6577d..64826ea 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -15,7 +15,7 @@
v-for="route in permission_routes"
:key="route.path"
:item="route"
- :base-path="route.path"
+
/>
diff --git a/src/layout/components/SubMenu/SubItem.vue b/src/layout/components/SubMenu/SubItem.vue
index 73d6938..326df38 100644
--- a/src/layout/components/SubMenu/SubItem.vue
+++ b/src/layout/components/SubMenu/SubItem.vue
@@ -1,8 +1,8 @@
-
-
+
+
@@ -10,7 +10,7 @@
-
+
{{ item.meta && item.meta.title }}
@@ -19,7 +19,7 @@
v-for="child in item.children"
:key="child.path"
:item="child"
- :base-path="resolvePath(child.path)"
+
/>
@@ -60,7 +60,7 @@ const hasOneShowingChild = (children = [], parent) => {
}
// 如果没有要显示的子路由器,则显示父路由器
if (showingChildren.length === 0) {
- onlyOneChild.value = { ...parent, path: '', noShowingChildren: true }
+ onlyOneChild.value = { ...parent, noShowingChildren: true }
return true
}