@@ -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 触底更新
@@ -76,7 +76,7 @@
getExamList
} from '@/api/index.js';
- onLoad
+ onLoad,onShow
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: '加载中'
});