mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
chore(ImagePreview): fix demo error
This commit is contained in:
@@ -408,10 +408,9 @@ export default createComponent({
|
||||
|
||||
// @exposed-api
|
||||
swipeTo(index, options) {
|
||||
if (!this.$refs.swipe) {
|
||||
return;
|
||||
if (this.$refs.swipe) {
|
||||
this.$refs.swipe.swipeTo(index, options);
|
||||
}
|
||||
this.$refs.swipe.swipeTo(+index, options);
|
||||
},
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user