Browse Source

bug 修复

lilei 4 years ago
parent
commit
8b043a147c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      pages/index/index.vue

+ 4 - 2
pages/index/index.vue

@@ -99,8 +99,6 @@
 			};
 		},
 		onLoad() {
-			this.getBanner('HOME_TOP')
-			this.gettoDoData()
 			// 获取周
 			this.getLookUpList('WEEK', 'vuex_weeks');
 			// 获取点检任务状态
@@ -108,6 +106,10 @@
 			// 获取巡店任务状态
 		    this.getLookUpList('TASK_STATUS','vuex_taskStatus')
 		},
+		onShow() {
+			this.getBanner('HOME_TOP')
+			this.gettoDoData()
+		},
 		methods: {
 			// 或某一项字典列表,参数code
 			getLookUpList(code, vuexKey) {