Explorar el Código

fix: 修复混合模式导航下调用`initRouter`函数导致左侧导航内存溢出问题

xiaoxian521 hace 1 año
padre
commit
d305e6fb1f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/layout/components/sidebar/vertical.vue

+ 1 - 0
src/layout/components/sidebar/vertical.vue

@@ -32,6 +32,7 @@ const loading = computed(() =>
 );
 );
 
 
 function getSubMenuData(path: string) {
 function getSubMenuData(path: string) {
+  subMenuData.value = [];
   // path的上级路由组成的数组
   // path的上级路由组成的数组
   const parentPathArr = getParentPaths(
   const parentPathArr = getParentPaths(
     path,
     path,