From 86b366cac525ad676da3cfd65f67a551b9260aeb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 28 一月 2021 18:57:03 +0800 Subject: [PATCH] 2021-01-28 --- src/tabviews/zshare/fileupload/index.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/fileupload/index.jsx b/src/tabviews/zshare/fileupload/index.jsx index e42c173..428fa2b 100644 --- a/src/tabviews/zshare/fileupload/index.jsx +++ b/src/tabviews/zshare/fileupload/index.jsx @@ -30,6 +30,13 @@ onChange = ({ fileList }) => { const { onChange } = this.props + fileList = fileList.map(item => { + if (item.status === 'error' && /^<!DOCTYPE html>/.test(item.response)) { + item.response = '' + } + return item + }) + if (onChange) { onChange([...fileList]) } -- Gitblit v1.8.0