From 8dc68c6b6daddede7bccde7bee0414204164488b Mon Sep 17 00:00:00 2001 From: Mr Xu <13931146495@163.com> Date: Sat, 17 Nov 2018 12:03:25 +0800 Subject: [PATCH] fixed infinite loop Bug when in hasOneShowingChild Edit the onlyOneChild --- src/views/layout/components/Sidebar/SidebarItem.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/layout/components/Sidebar/SidebarItem.vue b/src/views/layout/components/Sidebar/SidebarItem.vue index 8a9b4396..13afe5ea 100644 --- a/src/views/layout/components/Sidebar/SidebarItem.vue +++ b/src/views/layout/components/Sidebar/SidebarItem.vue @@ -62,8 +62,9 @@ export default { } }, data() { + this.onlyOneChild = null return { - onlyOneChild: null + // onlyOneChild: null } }, methods: {