wangjiawen 4 anos atrás
pai
commit
51a39bff89
1 arquivos alterados com 30 adições e 11 exclusões
  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) {