Skip to content

Commit e69c2c8

Browse files
authored
fix[Sidebar]: fixed infinite loop bug (PanJiaChen#289)
1 parent 7725f72 commit e69c2c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/views/layout/components/Sidebar/SidebarItem.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ export default {
5858
}
5959
},
6060
data() {
61-
return {
62-
onlyOneChild: null
63-
}
61+
// To fix https://github.com/PanJiaChen/vue-admin-template/issues/237
62+
// TODO: refactor with render function
63+
this.onlyOneChild = null
64+
return {}
6465
},
6566
methods: {
6667
hasOneShowingChild(children, parent) {

0 commit comments

Comments
 (0)