Browse Source

fix: 修复系统管理获取权限管理菜单的问题

zhaonan 1 day ago
parent
commit
9ebe838045
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/layout/routerView/parent.vue

+ 6 - 1
src/layout/routerView/parent.vue

@@ -46,7 +46,12 @@ const state = reactive<ParentViewState>({
 });
 const menuLeftList = computed(() => { 
 	const parentName = route.path.split('/')[1];
-	const parentRoute = routeStores.routesList.filter((item: RouteItem) => item.path.includes(parentName));
+	const parentRoute = routeStores.routesList.filter((item: RouteItem) => {
+		if(route.path.includes("/admin/log")) {
+			return item.path.includes("/system")
+		}
+		return item.path.includes(parentName)
+	});
 	return parentRoute[0].children || [];
 });
 console.log(menuLeftList.value, '移动');