diff --git a/pages/index/list.vue b/pages/index/list.vue index 8ff8562..16685d4 100644 --- a/pages/index/list.vue +++ b/pages/index/list.vue @@ -239,7 +239,7 @@ export default { success: function (res) {}, }); - this.form.url = data[0].path; + this.form.url = "http://sl.vrgon.com:8005/uploads/" + data[0].path; }, // 删除图片 diff --git a/pages/index/uploadPhoto.vue b/pages/index/uploadPhoto.vue index 090074e..003052b 100644 --- a/pages/index/uploadPhoto.vue +++ b/pages/index/uploadPhoto.vue @@ -191,7 +191,10 @@ export default { // success: function (res) {}, // }); - this.imageList = [...this.imageList, data[0].path]; + this.imageList = [ + ...this.imageList, + "http://sl.vrgon.com:8005/uploads/" + data[0].path, + ]; }, // 上传图片