huangmp 2 лет назад
Родитель
Сommit
b4d862b63e
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      src/components/elx-imgbox/index.vue

+ 2 - 6
src/components/elx-imgbox/index.vue

@@ -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
       }
     },