From 7832244c56ec2be452840a0581dbe07050920c02 Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 27 Feb 2019 13:47:28 +0800 Subject: [PATCH] tweak --- src/views/layout/components/Sidebar/SidebarItem.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/layout/components/Sidebar/SidebarItem.vue b/src/views/layout/components/Sidebar/SidebarItem.vue index 13afe5ea..da9a38c0 100644 --- a/src/views/layout/components/Sidebar/SidebarItem.vue +++ b/src/views/layout/components/Sidebar/SidebarItem.vue @@ -62,10 +62,9 @@ export default { } }, data() { + // To fix https://github.com/PanJiaChen/vue-admin-template/issues/237 + // TODO: refactor with render function this.onlyOneChild = null - return { - // onlyOneChild: null - } }, methods: { hasOneShowingChild(children, parent) {