Browse Source

fix 首页

he2802 3 năm trước cách đây
mục cha
commit
8c9a17dba6
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 2 0
      pages/index/index.vue
  2. 2 0
      pages/wd/index.vue

+ 2 - 0
pages/index/index.vue

@@ -182,6 +182,7 @@ export default {
 			this.isLogin = this.$method.isLogin()
 		}
 		if(this.isLogin){
+			this.$store.state.allowLoading = false;
 			this.$api.getinfoAttached().then(res => {
 				if(res.data.code ===200){
 					this.infoNums = res.data.data.informSum
@@ -189,6 +190,7 @@ export default {
 					this.$store.commit('tabNum', nums);
 				}
 			})
+			this.$store.state.allowLoading = true;
 		}else{
 			this.$store.commit('tabNum', 0);
 		}

+ 2 - 0
pages/wd/index.vue

@@ -112,7 +112,9 @@ export default {
 	onShow() {
 		this.isLogin = this.$method.isLogin();
 		if(this.isLogin){
+		this.$store.state.allowLoading = false;
 		this.getNums();
+		this.$store.state.allowLoading = true;
 		}
 		// this.$store.dispatch('changeTabsNum')
 	},