魏熙美 6 lat temu
rodzic
commit
b2c6bf0b5d

+ 1
- 1
VUECODE/smart-property-manage/src/views/rental/rentalAdd.vue Wyświetl plik

@@ -234,7 +234,7 @@ export default {
234 234
     handleRemove(file, fileList) {
235 235
       this.listData.appCarouselImg = []
236 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 240
     handleSuccessCarouselImg(response, file, fileList) { // 活动配图上传成功时回调

+ 2
- 1
VUECODE/smart-property-manage/src/views/rental/rentalEdit.vue Wyświetl plik

@@ -248,9 +248,10 @@ export default {
248 248
       this.listData.appListImg = res.data[0]
249 249
     },
250 250
     handleRemove(file, fileList) {
251
+      console.log(file, fileList)
251 252
       this.listData.appCarouselImg = []
252 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 257
     handleSuccessCarouselImg(response, file, fileList) { // 活动配图上传成功时回调