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