|
|
@@ -194,9 +194,6 @@ export default {
|
|
|
imgSizeLimit: {
|
|
|
default: false,
|
|
|
type: Boolean
|
|
|
- },
|
|
|
- prodIndex: {
|
|
|
- type: Number
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
|
@@ -299,8 +296,7 @@ export default {
|
|
|
_this.$message.error(_this.$i18n.t('components.imageExc300Px'))
|
|
|
return
|
|
|
}
|
|
|
- // _this.$emit('refreshPic', _this.images[0].filePath)
|
|
|
- _this.$emit('refreshPic', {imgPath: _this.images[0].filePath, prodIndex: _this.prodIndex})
|
|
|
+ _this.$emit('refreshPic', _this.images[0].filePath)
|
|
|
_this.visible = false
|
|
|
}
|
|
|
img.onerror = function () {
|
|
|
@@ -310,7 +306,7 @@ export default {
|
|
|
let imgPaths = this.images.map(file => {
|
|
|
return file.filePath
|
|
|
}).join(',')
|
|
|
- this.$emit('refreshPic', {imgPaths: imgPaths, prodIndex: _this.prodIndex})
|
|
|
+ this.$emit('refreshPic', imgPaths)
|
|
|
this.visible = false
|
|
|
}
|
|
|
},
|