Parcourir la source

Merge branch 'dev-ly' of https://s-20coaj910c.zht2.com/cmy/data-marketing-platform into dev-ly

luoy il y a 14 heures
Parent
commit
ed0b57fcab
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  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, '移动');