Skip to content

Commit a3f96b8

Browse files
committed
fix slide can not change data dynamically
1 parent 41be36e commit a3f96b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/slide/slide.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
needRefreshProps.forEach((key) => {
8787
this.$watch(key, () => {
8888
/* istanbul ignore next */
89-
this.refresh()
89+
this.$nextTick(() => {
90+
this.refresh()
91+
})
9092
})
9193
})
9294
},

0 commit comments

Comments
 (0)