fix[Sidebar]: fixed infinite loop bug(#1333)
* fixed infinite loop Bug when in hasOneShowingChild Edit the onlyOneChild * tweak
This commit is contained in:
parent
0f3d2bcd05
commit
0bc681efe6
|
@ -64,9 +64,9 @@ 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
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hasOneShowingChild(children, parent) {
|
hasOneShowingChild(children, parent) {
|
||||||
|
|
Loading…
Reference in New Issue