Tang 3 years ago
parent
commit
5aac5b80e7
2 changed files with 4 additions and 0 deletions
  1. 2 0
      pages/index/index.vue
  2. 2 0
      pages/wd/index.vue

+ 2 - 0
pages/index/index.vue

@@ -189,6 +189,8 @@ export default {
 					this.$store.commit('tabNum', nums);
 				}
 			})
+		}else{
+			this.$store.commit('tabNum', 0);
 		}
 	},
 	onShareAppMessage(res) {

+ 2 - 0
pages/wd/index.vue

@@ -111,7 +111,9 @@ export default {
 	onLoad() {},
 	onShow() {
 		this.isLogin = this.$method.isLogin();
+		if(this.isLogin){
 		this.getNums();
+		}
 		// this.$store.dispatch('changeTabsNum')
 	},
 	methods: {