wangjiawen 4 years ago
parent
commit
51a39bff89
1 changed files with 30 additions and 11 deletions
  1. 30 11
      components/drawer/threeLineDrawer.vue

+ 30 - 11
components/drawer/threeLineDrawer.vue

@@ -68,19 +68,38 @@
 
 				this.drawerIsShow = false;
 
-				//#ifdef H5
-				   if(this.drawerList[0].name=='手环管理'){
-					   this.$root.leftbar();
-				   }
-				   
 
-				//#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+                if(this.drawerList.length!=0){
+					//#ifdef H5
+					   if(this.drawerList[0].name=='手环管理'){
+						   this.$root.leftbar();
+					   }
+					   
+					
+					//#endif
+					
+					//#ifdef APP-PLUS
+					   if(this.drawerList[0].name=='手环管理'){
+					       this.$parent.leftbar();
+					   }
+					//#endif
+				}
 				
-				//#ifdef APP-PLUS
-				   if(this.drawerList[0].name=='手环管理'){
-				       this.$parent.leftbar();
-				   }
-				//#endif
 
 			},
 			clickChangeColor: function(index) {