From fc277c75ee08152a440778850b9398ea8a9d49d2 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 27 Feb 2019 13:50:27 +0800 Subject: [PATCH] fix[Sidebar]: data should return a object --- src/views/layout/components/Sidebar/SidebarItem.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/layout/components/Sidebar/SidebarItem.vue b/src/views/layout/components/Sidebar/SidebarItem.vue index 58cee945..9a555f4b 100644 --- a/src/views/layout/components/Sidebar/SidebarItem.vue +++ b/src/views/layout/components/Sidebar/SidebarItem.vue @@ -67,6 +67,7 @@ export default { // To fix https://github.com/PanJiaChen/vue-admin-template/issues/237 // TODO: refactor with render function this.onlyOneChild = null + return {} }, methods: { hasOneShowingChild(children, parent) {