fix[Sidebar]: data should return a object

This commit is contained in:
Pan 2019-02-27 13:50:27 +08:00
parent 0bc681efe6
commit d45e80549f
1 changed files with 1 additions and 0 deletions

View File

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