2 Revize c66bc68b2b ... 6417f91546

Autor SHA1 Zpráva Datum
  wangxy 6417f91546 Merge remote-tracking branch 'origin/main' před 2 týdny
  wangxy d3d188eb72 修改页面请求 před 2 týdny

+ 2 - 2
components/mta-scroll-list/mta-scroll-list.vue

@@ -7,7 +7,7 @@
 <script setup>
 	import {
 		onReachBottom,
-		onLoad,
+		onLoad,onShow,
 		onPullDownRefresh
 	} from "@dcloudio/uni-app"
 
@@ -94,7 +94,7 @@
 	/**
 	 * @summary 加载完成 首次进行下拉刷新
 	 */
-	onLoad(() => uni.startPullDownRefresh());
+	onShow(() => uni.startPullDownRefresh());
 
 	/**
 	 * @summary 触底更新

+ 2 - 2
pages/index/index.vue

@@ -76,7 +76,7 @@
 		getExamList
 	} from '@/api/index.js';
 	import {
-		onLoad
+		onLoad,onShow
 	} from "@dcloudio/uni-app"
 	import cacheManager from '@/utils/cacheManager.js'
 	const banners = ref('');
@@ -112,7 +112,7 @@
 	const ksxzRef = ref(null);
 	const activeKs = ref(null);
 
-	onLoad(() => {
+	onShow(() => {
 		uni.showLoading({
 			title: '加载中'
 		});