🔨 会话关闭中断传输记录.
This commit is contained in:
@@ -15,7 +15,6 @@ export interface SystemSettingUpdateRequest {
|
||||
*/
|
||||
export interface AppInfoResponse {
|
||||
version: string;
|
||||
uuid: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
<!-- RDP版本 -->
|
||||
<a-form-item field="versionGt81"
|
||||
label="RDP版本"
|
||||
tooltip="RDP 8.1 及以上版本支持动态调整分辨率"
|
||||
hide-asterisk>
|
||||
<a-switch v-model="formModel.versionGt81"
|
||||
type="round"
|
||||
|
||||
@@ -6,12 +6,6 @@
|
||||
:align="{ label: 'right', value: 'left' }"
|
||||
:label-style="{ paddingTop: '2px', paddingLeft: '32px', verticalAlign: 'top' }"
|
||||
:column="1">
|
||||
<!-- 机器码 -->
|
||||
<a-descriptions-item label="机器码">
|
||||
<span class="text-copy uuid-wrapper" @click="copy(app.uuid, true)">
|
||||
{{ app.uuid }}
|
||||
</span>
|
||||
</a-descriptions-item>
|
||||
<!-- 当前前端版本 -->
|
||||
<a-descriptions-item label="当前前端版本">
|
||||
<!-- 前端版本 -->
|
||||
@@ -66,7 +60,6 @@
|
||||
|
||||
const app = ref<AppInfoResponse>({
|
||||
version: '',
|
||||
uuid: '',
|
||||
});
|
||||
|
||||
const repo = ref<AppReleaseResponse>({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { IRdpTransferManager, IRdpSession } from '@/views/terminal/interfaces';
|
||||
import type Guacamole from 'guacamole-common-js';
|
||||
import { TerminalMessages } from '../../types/const';
|
||||
import { TerminalMessages, TransferStatus } from '../../types/const';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import BaseTransferManager from './base-transfer-manager';
|
||||
import RdpFileDownloadTask from './rdp-file-download-task';
|
||||
@@ -62,6 +62,7 @@ export default class RdpTransferManager extends BaseTransferManager implements I
|
||||
// 通过 sessionKey 关闭
|
||||
closeBySessionKey(sessionKey: string): void {
|
||||
this.tasks.filter(s => s.sessionKey === sessionKey)
|
||||
.filter(s => s.state.status === TransferStatus.WAITING || s.state.status === TransferStatus.TRANSFERRING)
|
||||
.forEach(s => s.onError(TerminalMessages.sessionClosed));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user