chenxiong 3 vuotta sitten
vanhempi
commit
c5cc779e0c
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      pages/index/index.vue

+ 4 - 1
pages/index/index.vue

@@ -183,7 +183,10 @@ export default {
 	},
 	onPullDownRefresh() {},
 	async onLoad(option) {
-		await this.getUserInfo();
+		if(this.$method.isLogin()) {
+			await this.getUserInfo()
+		}
+		
 		this.courseList();
 		this.bankList();
 		this.getAdvertising();