Browse Source

优化 upload 上传失败时的报错提示

pull/1257/head
贤心 2 years ago
parent
commit
849a999d8b
  1. 6
      src/modules/upload.js

6
src/modules/upload.js

@ -226,7 +226,11 @@ layui.define(['lay','layer'], function(exports){
//异常回调 //异常回调
,error: function(e){ ,error: function(e){
failed++; failed++;
that.msg('Request URL is abnormal: '+ (e.statusText || 'error')); that.msg([
'Upload failed, please try again.',
'status: '+ (e.status || '') +' - '+ (e.statusText || 'error')
].join('<br>'));
console.log(e)
error(index); error(index);
allDone(); allDone();
} }

Loading…
Cancel
Save