Skip to content

Commit e544c01

Browse files
frank10000PanJiaChen
authored andcommitted
fix[Sidebar]: fixed infinite loop bug(PanJiaChen#1333)
* fixed infinite loop Bug when in hasOneShowingChild Edit the onlyOneChild * tweak
1 parent c0f378e commit e544c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ export default {
6464
}
6565
},
6666
data() {
67-
return {
68-
onlyOneChild: null
69-
}
67+
// To fix https://github.com/PanJiaChen/vue-admin-template/issues/237
68+
// TODO: refactor with render function
69+
this.onlyOneChild = null
7070
},
7171
methods: {
7272
hasOneShowingChild(children, parent) {

0 commit comments

Comments
 (0)