lilei преди 4 години
родител
ревизия
8b043a147c
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      pages/index/index.vue

+ 4 - 2
pages/index/index.vue

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