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) {