魏熙美 6 年前
父节点
当前提交
b2c6bf0b5d

+ 1
- 1
VUECODE/smart-property-manage/src/views/rental/rentalAdd.vue 查看文件

234
     handleRemove(file, fileList) {
234
     handleRemove(file, fileList) {
235
       this.listData.appCarouselImg = []
235
       this.listData.appCarouselImg = []
236
       for (let i = 0; i < fileList.length; i++) {
236
       for (let i = 0; i < fileList.length; i++) {
237
-        this.listData.appCarouselImg.push(fileList[i].response.data[0])
237
+        this.listData.appCarouselImg.push(fileList[i].url)
238
       }
238
       }
239
     },
239
     },
240
     handleSuccessCarouselImg(response, file, fileList) { // 活动配图上传成功时回调
240
     handleSuccessCarouselImg(response, file, fileList) { // 活动配图上传成功时回调

+ 2
- 1
VUECODE/smart-property-manage/src/views/rental/rentalEdit.vue 查看文件

248
       this.listData.appListImg = res.data[0]
248
       this.listData.appListImg = res.data[0]
249
     },
249
     },
250
     handleRemove(file, fileList) {
250
     handleRemove(file, fileList) {
251
+      console.log(file, fileList)
251
       this.listData.appCarouselImg = []
252
       this.listData.appCarouselImg = []
252
       for (let i = 0; i < fileList.length; i++) {
253
       for (let i = 0; i < fileList.length; i++) {
253
-        this.listData.appCarouselImg.push(fileList[i].response.data[0])
254
+        this.listData.appCarouselImg.push(fileList[i].url)
254
       }
255
       }
255
     },
256
     },
256
     handleSuccessCarouselImg(response, file, fileList) { // 活动配图上传成功时回调
257
     handleSuccessCarouselImg(response, file, fileList) { // 活动配图上传成功时回调