Skip to content

Commit e7c3edb

Browse files
156839224gitee-org
authored andcommitted
update yudao-ui-admin/src/components/FileUpload/index.vue.
后台一直使用 0 作为成功,所以前端也不应该使用200 Signed-off-by: plimlips <[email protected]>
1 parent 2a362a3 commit e7c3edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FileUpload/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default {
150150
},
151151
// 上传成功回调
152152
handleUploadSuccess(res, file) {
153-
if (res.code === 200) {
153+
if (res.code === 0) {
154154
// edit by 芋道源码
155155
this.uploadList.push({ name: res.data, url: res.data });
156156
this.uploadedSuccessfully();

0 commit comments

Comments
 (0)