From 2c0215938411cd7c016fed68633ea74f640e3589 Mon Sep 17 00:00:00 2001 From: plimlips <156839224@qq.com> Date: Wed, 28 Dec 2022 15:49:03 +0000 Subject: [PATCH] update yudao-ui-admin/src/components/FileUpload/index.vue. 后台一直使用 0 作为成功,所以前端也不应该使用200 --- yudao-ui-admin/src/components/FileUpload/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-admin/src/components/FileUpload/index.vue b/yudao-ui-admin/src/components/FileUpload/index.vue index 214a3be..d9c4f4d 100644 --- a/yudao-ui-admin/src/components/FileUpload/index.vue +++ b/yudao-ui-admin/src/components/FileUpload/index.vue @@ -150,7 +150,7 @@ export default { }, // 上传成功回调 handleUploadSuccess(res, file) { - if (res.code === 200) { + if (res.code === 0) { // edit by 芋道源码 this.uploadList.push({ name: res.data, url: res.data }); this.uploadedSuccessfully(); -- libgit2 0.21.4