Explorar o código

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

xiaoxian521 %!s(int64=2) %!d(string=hai) anos
pai
achega
d305e6fb1f
Modificáronse 1 ficheiros con 1 adicións e 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) {
+  subMenuData.value = [];
   // path的上级路由组成的数组
   const parentPathArr = getParentPaths(
     path,