update yudao-ui-admin/src/components/FileUpload/index.vue.

后台一直使用 0 作为成功,所以前端也不应该使用200

Signed-off-by: plimlips <156839224@qq.com>
pull/2/head
plimlips 2022-12-28 15:49:03 +00:00 committed by Gitee
parent 258c1ddb70
commit 2c02159384
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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();