fix[Sidebar]: fixed infinite loop bug(#1333)

* fixed infinite loop Bug when in hasOneShowingChild Edit the onlyOneChild

* tweak
This commit is contained in:
frank10000 2019-02-27 13:48:30 +08:00 committed by Pan
parent 0f3d2bcd05
commit 0bc681efe6
1 changed files with 3 additions and 3 deletions

View File

@ -64,9 +64,9 @@ export default {
}
},
data() {
return {
onlyOneChild: null
}
// To fix https://github.com/PanJiaChen/vue-admin-template/issues/237
// TODO: refactor with render function
this.onlyOneChild = null
},
methods: {
hasOneShowingChild(children, parent) {