소스 검색

修改上传参数

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) {
-      this.form.img = e;
+      this.form.img = e.file;
     },
 
     // 上传设备图标
     handleUploadIcon(e, index, obj) {
-      this.form.typeList[index][obj] = e;
+      this.form.typeList[index][obj] = e.file;
     },
 
     // 选中一个设备类型就从数组中去掉