diff --git a/pages/index/list.vue b/pages/index/list.vue index aa8d79b..086fd18 100644 --- a/pages/index/list.vue +++ b/pages/index/list.vue @@ -239,7 +239,7 @@ export default { // success: function (res) {}, // }); - this.form.url = data.path; + this.form.url = data[0].path; }, // 删除图片 diff --git a/pages/index/uploadPhoto.vue b/pages/index/uploadPhoto.vue index e94c311..090074e 100644 --- a/pages/index/uploadPhoto.vue +++ b/pages/index/uploadPhoto.vue @@ -191,7 +191,7 @@ export default { // success: function (res) {}, // }); - this.imageList = [...this.imageList, data.path]; + this.imageList = [...this.imageList, data[0].path]; }, // 上传图片