wangxy 4 недель назад
Родитель
Сommit
3545f398a0
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      pages/chaojidanci/wordList/wordList.vue

+ 6 - 2
pages/chaojidanci/wordList/wordList.vue

@@ -126,7 +126,7 @@ import {
   useActiveDomIntoView,
   isTargetInSameGroup,
 } from "@/utils/common";
-import {onLoad} from "@dcloudio/uni-app";
+import {onLoad, onShow} from "@dcloudio/uni-app";
 import {getWordZhangList} from "@/api/chaojidanci.js";
 import cacheManager from "@/utils/cacheManager.js";
 import {useSwiper} from "@/utils/useSwiper";
@@ -261,9 +261,13 @@ onLoad((options) => {
   routerOpt.value = options;
   // 非游客
   danyuanId.value = routerOpt.value.danyuanId;
-  getWordListData();
+
 });
 
+onShow(() => {
+  getWordListData();
+})
+
 // Swiper 切换
 function handleSwiperChange(e) {
   // 只有当 swiper 的变化是由用户手动滑动引起的,才调用 updataShuju 函数