fix[Sidebar]: fixed infinite loop bug (#289)
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user