提交 e69c2c8a 编写于 作者: 花裤衩's avatar 花裤衩 提交者: GitHub

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

上级 7725f72b
......@@ -58,9 +58,10 @@ 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
return {}
},
methods: {
hasOneShowingChild(children, parent) {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或