瀏覽代碼

修改上传参数

wuhao 3 年之前
父節點
當前提交
898130d9f0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/device/list/detail.vue

+ 2 - 2
src/views/device/list/detail.vue

@@ -233,12 +233,12 @@ export default {
 
 
     // 上传设备图片
     // 上传设备图片
     handleUploadImg(e) {
     handleUploadImg(e) {
-      this.form.img = e;
+      this.form.img = e.file;
     },
     },
 
 
     // 上传设备图标
     // 上传设备图标
     handleUploadIcon(e, index, obj) {
     handleUploadIcon(e, index, obj) {
-      this.form.typeList[index][obj] = e;
+      this.form.typeList[index][obj] = e.file;
     },
     },
 
 
     // 选中一个设备类型就从数组中去掉
     // 选中一个设备类型就从数组中去掉