From 849a999d8b6e68af8a9824ca3888dfa3786aa391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 17 May 2023 18:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20upload=20=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=A4=B1=E8=B4=A5=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/upload.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/upload.js b/src/modules/upload.js index 150356ab..78b972fc 100644 --- a/src/modules/upload.js +++ b/src/modules/upload.js @@ -226,7 +226,11 @@ layui.define(['lay','layer'], function(exports){ //异常回调 ,error: function(e){ failed++; - that.msg('Request URL is abnormal: '+ (e.statusText || 'error')); + that.msg([ + 'Upload failed, please try again.', + 'status: '+ (e.status || '') +' - '+ (e.statusText || 'error') + ].join('
')); + console.log(e) error(index); allDone(); }