From 75f3fd6e67851b9079e0b82c8cd94bf7649fe8bd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 08 三月 2021 18:53:44 +0800 Subject: [PATCH] 2021-03-08 --- src/tabviews/zshare/fileupload/index.jsx | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/fileupload/index.jsx b/src/tabviews/zshare/fileupload/index.jsx index e8cf594..df0cf6f 100644 --- a/src/tabviews/zshare/fileupload/index.jsx +++ b/src/tabviews/zshare/fileupload/index.jsx @@ -68,8 +68,12 @@ } onDelete = (msg) => { - let filelist = this.state.filelist.filter(v => !v.url && !v.response) - + let filelist = this.state.filelist.map(item => { + if (!item.url && !item.response && !item.status) { + item.status = 'error' + } + return item + }) this.setState({filelist, showprogress: false}) this.props.onChange(filelist) -- Gitblit v1.8.0