Browse Source

修改左侧导航功能

shilin 4 years atrás
parent
commit
d1b72029e3
1 changed files with 6 additions and 1 deletions
  1. 6 1
      components/drawer/threeLineDrawer.vue

+ 6 - 1
components/drawer/threeLineDrawer.vue

@@ -66,7 +66,12 @@
 			},
 			closeDrawer: function() {
 				this.drawerIsShow = false;
-				this.$parent.leftbar();
+				
+				if(this.$parent!=undefined)
+				{
+					this.$parent.leftbar();
+				}
+				
 			},
 			clickChangeColor: function(index) {
 				this.changeGary = index;