diff --git a/src/modules/image/dashboard.js b/src/modules/image/dashboard.js index e5b2a7e..d0148e4 100644 --- a/src/modules/image/dashboard.js +++ b/src/modules/image/dashboard.js @@ -151,7 +151,7 @@ export default { } xhr.onload = () => { - if (xhr.status !== 200) { + if (xhr.status >= 300) { this.setUploadError(`request error,code ${xhr.status}`) return } @@ -186,4 +186,4 @@ export default { xhr.send(formData) } } -} \ No newline at end of file +}