文件分发执行成功后将清空数据源列表

pull/586/head
vapao 2022-10-31 18:08:59 +08:00
parent 3bf3b379cd
commit 15eef601e8
1 changed files with 8 additions and 1 deletions

View File

@ -113,6 +113,13 @@ function TransferIndex() {
setFiles([...files])
}
function handleCloseOutput() {
setToken()
if (!store.counter['0'] && !store.counter['2']) {
setFiles([])
}
}
return (<AuthDiv auth="exec.transfer.do">
<Breadcrumb>
<Breadcrumb.Item>首页</Breadcrumb.Item>
@ -185,7 +192,7 @@ function TransferIndex() {
</div>
</div>
<Selector {...sProps}/>
{token ? <Output token={token} onBack={() => setToken()}/> : null}
{token ? <Output token={token} onBack={handleCloseOutput}/> : null}
</AuthDiv>)
}