mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-12 19:51:39 +08:00
管理员后台文件上传添加出错提示
This commit is contained in:
@@ -452,6 +452,9 @@
|
||||
}, 300);
|
||||
};
|
||||
xhr.onerror = function (e) {
|
||||
swal("上传失败,请检查网络连接并重试!").then(function () {
|
||||
location.reload();
|
||||
});
|
||||
console.log('上传出错', xhr.status, xhr.statusText);
|
||||
};
|
||||
xhr.send(file); // file 是要上传的文件对象
|
||||
|
Reference in New Issue
Block a user