Skip to content

Commit 5979102

Browse files
committed
fix(vue): fixed updating virtual slides on virtual data change
1 parent 31aa87a commit 5979102

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/vue/swiper.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,12 @@ const Swiper = {
300300
});
301301

302302
// update on virtual update
303-
watch(virtualData, () => {
304-
updateOnVirtualData(swiperRef.value);
305-
});
303+
watch(
304+
() => virtualData,
305+
() => {
306+
updateOnVirtualData(swiperRef.value);
307+
},
308+
);
306309

307310
// mount swiper
308311
onMounted(() => {

0 commit comments

Comments
 (0)