|
@@ -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, '移动');
|