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

This commit is contained in:
花裤衩 2019-02-27 13:59:39 +08:00 committed by GitHub
parent 7725f72beb
commit e69c2c8afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

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