Skip to content

Commit

Permalink
fix(swiper): resolve change current not work (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Dec 17, 2024
1 parent 94b7966 commit a74b5eb
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 a74b5eb

Please sign in to comment.