From a954fba045e0b625af7175168171156273427095 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Tue, 26 Jun 2018 22:36:48 +0800 Subject: [PATCH] no message Former-commit-id: 1b2c250bfb5f3d55142d722cd953c2ab20b6dff0 [formerly 1b2c250bfb5f3d55142d722cd953c2ab20b6dff0 [formerly 1b2c250bfb5f3d55142d722cd953c2ab20b6dff0 [formerly 1b2c250bfb5f3d55142d722cd953c2ab20b6dff0 [formerly d63b60e1e15a4074e160e6dcca670abbe5785bb3 [formerly 8fb77b1b8b2e169dd6d71f1311e2032723a8e176]]]]] Former-commit-id: b753b7bee738a0f16d5d19996ce5d272a437c230 Former-commit-id: 3453563974f1a2d8f3a7ab4ef27a9d62712dc2aa Former-commit-id: 53f411ca82ff144df7f19a9baf134d34e2d3b5af [formerly 5eebb656e1b6f5f5c141a25f6d54730a6fec85f8] Former-commit-id: 58a05b8fbabcca334e9364b30a7c736f7a065b41 Former-commit-id: e9afe6c4e71d995ce8850cc0e66c6a00737ee3d2 Former-commit-id: 22698cc0799fda7256d0dfd4289b607c6049bfe6 Former-commit-id: 09eac266f601d6aa971f5eeb660541d7428c889d Former-commit-id: c3868ddf73083751c084af021e3fa6ad249a306a --- .../core/d2-layout-main/components/-menu-side/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/core/d2-layout-main/components/-menu-side/index.vue b/src/components/core/d2-layout-main/components/-menu-side/index.vue index e6ee4758..9f2d6bfd 100644 --- a/src/components/core/d2-layout-main/components/-menu-side/index.vue +++ b/src/components/core/d2-layout-main/components/-menu-side/index.vue @@ -49,7 +49,8 @@ export default { '$route.matched': { handler (val) { const path = val[0].path - this.menus = side.filter(menu => menu.path === path) + const _side = side.filter(menu => menu.path === path) + this.menus = _side.length > 0 ? _side[0].children : [] }, immediate: true }