Unverified Commit e69c2c8a authored by 花裤衩's avatar 花裤衩 Committed by GitHub

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

parent 7725f72b
...@@ -58,9 +58,10 @@ export default { ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment