瀏覽代碼

fix 首页

he2802 3 年之前
父節點
當前提交
de4eb090a5
共有 2 個文件被更改,包括 4 次插入0 次删除
  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: {