Bläddra i källkod

Merge branch 'main' of https://gogs.mtavip.com/wangguoyu/uniProject

tanxue 2 veckor sedan
förälder
incheckning
54abc3a4f3
2 ändrade filer med 4 tillägg och 4 borttagningar
  1. 2 2
      components/mta-scroll-list/mta-scroll-list.vue
  2. 2 2
      pages/index/index.vue

+ 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: '加载中'
 		});