mirror of https://github.com/openspug/spug
文件分发执行成功后将清空数据源列表
parent
fe7881a0b4
commit
dc3437b239
|
@ -113,6 +113,13 @@ function TransferIndex() {
|
||||||
setFiles([...files])
|
setFiles([...files])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleCloseOutput() {
|
||||||
|
setToken()
|
||||||
|
if (!store.counter['0'] && !store.counter['2']) {
|
||||||
|
setFiles([])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (<AuthDiv auth="exec.transfer.do">
|
return (<AuthDiv auth="exec.transfer.do">
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<Breadcrumb.Item>首页</Breadcrumb.Item>
|
<Breadcrumb.Item>首页</Breadcrumb.Item>
|
||||||
|
@ -185,7 +192,7 @@ function TransferIndex() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Selector {...sProps}/>
|
<Selector {...sProps}/>
|
||||||
{token ? <Output token={token} onBack={() => setToken()}/> : null}
|
{token ? <Output token={token} onBack={handleCloseOutput}/> : null}
|
||||||
</AuthDiv>)
|
</AuthDiv>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue