Skip to content

Commit 8c67e8f

Browse files
committed
Tab disabled
1 parent 2aa176d commit 8c67e8f

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

src/app/elements/drawer/drawer.component.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ export class ElementDrawerComponent implements OnInit, OnDestroy {
6464

6565
// Windows资产的特殊处理
6666
if (view.asset.type && view.asset.type.value === 'windows') {
67-
// Windows下的SSH应该禁用文件管理器
67+
// Windows下的SSH不禁用文件管理器
6868
if (view.protocol === 'ssh') {
69-
return true;
69+
return false;
7070
}
71-
// Windows下的其他协议(如RDP)也禁用文件管理器
71+
// Windows下的其他协议(如RDP)禁用文件管理器
7272
return true;
7373
}
7474

@@ -110,9 +110,6 @@ export class ElementDrawerComponent implements OnInit, OnDestroy {
110110
return true;
111111
}
112112

113-
// telnet协议的快捷键不需要被禁用
114-
// 其他协议根据需要添加到禁用列表中
115-
116113
return false;
117114
}
118115

src/app/elements/drawer/filemanager/filemanager.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ export class ElementFileManagerComponent implements OnInit, AfterViewInit, OnDes
8888

8989
// Windows资产的特殊处理
9090
if (view.asset.type && view.asset.type.value === 'windows') {
91-
// Windows下的SSH应该禁用文件管理器
91+
// Windows下的SSH不禁用文件管理器
9292
if (view.protocol === 'ssh') {
93-
return true;
93+
return false;
9494
}
95-
// Windows下的其他协议(如RDP)也禁用文件管理器
95+
// Windows下的其他协议(如RDP)禁用文件管理器
9696
return true;
9797
}
9898

0 commit comments

Comments
 (0)