优化会话关闭处理逻辑.

This commit is contained in:
lijiahang
2024-06-11 12:31:16 +08:00
parent 4b060a864a
commit ae03460a33
10 changed files with 131 additions and 65 deletions

View File

@@ -65,7 +65,7 @@ export function deleteHostSftpLog(idList: Array<number>) {
/**
* 下载文件
*/
export function downloadWithTransferToken(channelId: string, transferToken: string) {
window.open(`${httpBaseUrl}/asset/host-sftp/download?channelId=${channelId}&transferToken=${transferToken}`, 'newWindow');
export function getDownloadTransferUrl(channelId: string, transferToken: string) {
return `${httpBaseUrl}/asset/host-sftp/download?channelId=${channelId}&transferToken=${transferToken}`;
}