0 ? _side[0].children : []
this.active = val[val.length - 1].path
this.$nextTick(() => {
- this.$refs.menu.activeIndex = this.active
+ if (this.menus.length > 0) {
+ this.$refs.menu.activeIndex = this.active
+ }
})
},
immediate: true
diff --git a/src/components/core/d2-layout-main/components/-menu-sub/index.vue b/src/components/core/d2-layout-main/components/-menu-sub/index.vue
index d4074819..88dd903b 100644
--- a/src/components/core/d2-layout-main/components/-menu-sub/index.vue
+++ b/src/components/core/d2-layout-main/components/-menu-sub/index.vue
@@ -1,7 +1,7 @@
-
+
{{menu.title}}
diff --git a/src/menu/index.js.REMOVED.git-id b/src/menu/index.js.REMOVED.git-id
index 0e627d15..fab9a01c 100644
--- a/src/menu/index.js.REMOVED.git-id
+++ b/src/menu/index.js.REMOVED.git-id
@@ -1 +1 @@
-bf6d527e9d3ed7e689157c558539c615f6d69190
\ No newline at end of file
+bdea6a7f1b965319df811436ddcfcd42f0051ff2
\ No newline at end of file