Commit 2c0215938411cd7c016fed68633ea74f640e3589
Committed by
Gitee
1 parent
258c1ddb
update yudao-ui-admin/src/components/FileUpload/index.vue.
后台一直使用 0 作为成功,所以前端也不应该使用200 Signed-off-by: plimlips <156839224@qq.com>
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-ui-admin/src/components/FileUpload/index.vue
| @@ -150,7 +150,7 @@ export default { | @@ -150,7 +150,7 @@ export default { | ||
| 150 | }, | 150 | }, |
| 151 | // 上传成功回调 | 151 | // 上传成功回调 |
| 152 | handleUploadSuccess(res, file) { | 152 | handleUploadSuccess(res, file) { |
| 153 | - if (res.code === 200) { | 153 | + if (res.code === 0) { |
| 154 | // edit by 芋道源码 | 154 | // edit by 芋道源码 |
| 155 | this.uploadList.push({ name: res.data, url: res.data }); | 155 | this.uploadList.push({ name: res.data, url: res.data }); |
| 156 | this.uploadedSuccessfully(); | 156 | this.uploadedSuccessfully(); |