zhaonan 5 giorni fa
parent
commit
1213d82a26
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      src/layout/navMenu/horizontal.vue

+ 0 - 1
src/layout/navMenu/horizontal.vue

@@ -131,7 +131,6 @@ const setCurrentRouterHighlight = (currentRoute: RouteToFrom) => {
 		const pathSplit = meta?.isDynamic ? meta.isDynamicPath!.split('/') : path!.split('/');
 		if (pathSplit.length >= 4 && meta?.isHide) state.defaultActive = pathSplit.splice(0, 3).join('/');
 		else state.defaultActive = path;
-		state.defaultActive = route.children ? route.children[0].path : route.path;
 	}
 };