1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-12 19:51:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

创建预授权URL后端日志记录

This commit is contained in:
2022-04-08 18:44:32 +08:00
parent 2df583ab61
commit b4d7f858a3
11 changed files with 220 additions and 120 deletions

View File

@@ -349,6 +349,11 @@
};
xhr.onload = function (e) {
console.log('上传成功', xhr.status, xhr.statusText);
// 等待进度条走到 100% 否则小文件进度条还没有走完就提示上传完成会让人感觉有点奇怪
setTimeout(function(){
alert("上传成功!");
window.location.reload();
}, 300);
};
xhr.onerror = function (e) {
console.log('上传出错', xhr.status, xhr.statusText);