...
|
...
|
@@ -225,7 +225,7 @@ export default { |
|
|
this.imageUrls.push(val.replace(/{width}x{height}/, "750x"));
|
|
|
});
|
|
|
|
|
|
this.$createImagePreview({
|
|
|
this.preView = this.$createImagePreview({
|
|
|
imgs: this.imageUrls,
|
|
|
initialIndex: index
|
|
|
}).show();
|
...
|
...
|
@@ -291,6 +291,18 @@ export default { |
|
|
}).show();
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
|
|
|
if (this.preView) {
|
|
|
this.preView.hide && this.preView.hide()
|
|
|
}
|
|
|
},
|
|
|
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
if (this.preView) {
|
|
|
this.preView.hide && this.preView.hide()
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|