Commit 2e4b1701 by xinla

文件上传组件问题

1 parent 398f5e77
User-agent: *
Disallow: /
\ No newline at end of file \ No newline at end of file
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
// if (beforeUpload) { // if (beforeUpload) {
// return beforeUpload(file) // return beforeUpload(file)
// } // }
return isFormat && isSize return (isFormat && isSize) || Promise.reject()
}, },
onSuccess(res, file) { onSuccess(res, file) {
if (res.code === 200) { if (res.code === 200) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!