@@ -79,6 +79,12 @@ function afterRead(file: any) {
file.status = 'failed';
file.message = '上传失败';
}
+ }).catch((error: any) => {
+ if (error.code === 'ECONNABORTED') {
+ showFailToast('请求超时,请检查网络连接并重试')
+ }
+ file.status = 'failed';
+ file.message = '上传超时';
})