Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Nov 20, 2023
1 parent 954f9e5 commit 5f265cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/packages/__VUE/swiper/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,24 +414,24 @@ export default create({
watch(
() => props.initPage,
() => {
(val) => {
Taro.nextTick(() => {
init();
init(+val);
});
eventCenter.once((getCurrentInstance() as any).router.onReady, () => {
init();
init(+val);
});
}
);
watch(
() => props.height,
(val) => {
() => {
Taro.nextTick(() => {
init(+val);
init();
});
eventCenter.once((getCurrentInstance() as any).router.onReady, () => {
init(+val);
init();
});
}
);
Expand Down

0 comments on commit 5f265cc

Please sign in to comment.