Selaa lähdekoodia

改api.js和index.vue初始化

ming 3 vuotta sitten
vanhempi
commit
c02b41c418
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 6 6
      pages/index/index.vue

+ 6 - 6
pages/index/index.vue

@@ -193,15 +193,15 @@
 		onLoad: function(option) {
 
 		
-			// if (option.op) {
-			// 	this.getData();
+			if (option.op) {
+				this.getData();
 			
-			// } else {
-			// 	this.init()
-			// }
+			} else {
+				this.init()
+			}
 			
 			
-			this.getData();
+			// this.getData();
 
 			this.hackReset = false;
 			this.$nextTick(() => {