Skip to content

Commit

Permalink
fix(swiper): resolve change current not work
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Dec 17, 2024
1 parent 47a7886 commit aa60f53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/swiper/swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,7 @@ export default defineComponent({
watch(
() => props.current,
() => {
if (props.autoplay) {
swiperTo(props.current, { source: 'autoplay' });
}
swiperTo(props.current, { source: 'autoplay' });
},
);

Expand Down

0 comments on commit aa60f53

Please sign in to comment.