From c90fe03614ace678279f4acadb8373fe821350f8 Mon Sep 17 00:00:00 2001 From: wanglei Date: Wed, 26 Jun 2024 10:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/components/ImageUpload/index.vue | 2 +- dangan-ui/src/views/dangan/catalog/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dangan-ui/src/components/ImageUpload/index.vue b/dangan-ui/src/components/ImageUpload/index.vue index 2e64c9b..9ac7bd7 100644 --- a/dangan-ui/src/components/ImageUpload/index.vue +++ b/dangan-ui/src/components/ImageUpload/index.vue @@ -155,7 +155,7 @@ export default { // 上传成功回调 handleUploadSuccess(res, file) { if (res.code === 200) { - this.uploadList.push({ name: res.fileName, url: res.fileName }); + this.uploadList.push({ name: res.fileName, url: res.url }); this.uploadedSuccessfully(); } else { this.number--; diff --git a/dangan-ui/src/views/dangan/catalog/index.vue b/dangan-ui/src/views/dangan/catalog/index.vue index 82f3d11..06ad1a8 100644 --- a/dangan-ui/src/views/dangan/catalog/index.vue +++ b/dangan-ui/src/views/dangan/catalog/index.vue @@ -380,7 +380,7 @@ export default { }); }, /** 提交按钮 */ - submitForm: function() { + submitForm() { this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != undefined) {