mirror of https://github.com/openspug/spug
文件分发执行成功后将清空数据源列表
parent
3bf3b379cd
commit
15eef601e8
|
@ -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>)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue