|
|
@@ -15,7 +15,7 @@
|
|
|
<!-- 实际图片 -->
|
|
|
<image
|
|
|
v-show="item.loaded"
|
|
|
- :src="item.shouldLoad ? getImageUrl(item.content) : ''"
|
|
|
+ :src="item.shouldLoad ? resizeImage(item.content, '1000') : ''"
|
|
|
mode="widthFix"
|
|
|
class="big-image"
|
|
|
@error="onImageError(index)"
|
|
|
@@ -304,8 +304,9 @@ export default {
|
|
|
// 预览单张大图
|
|
|
previewImage(imageUrl) {
|
|
|
const fullImageUrl = this.getImageUrl(imageUrl)
|
|
|
- this.currentPreviewImage = fullImageUrl
|
|
|
- this.currentImageList = [fullImageUrl]
|
|
|
+ const resizeImageUrl = this.resizeImage(fullImageUrl, '1000')
|
|
|
+ this.currentPreviewImage = resizeImageUrl
|
|
|
+ this.currentImageList = [resizeImageUrl]
|
|
|
this.currentImageIndex = 0
|
|
|
this.showImagePreview = true
|
|
|
// 初始化预览图片状态
|