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) {