修改防抖时间.

This commit is contained in:
lijiahangmax
2025-06-13 23:53:01 +08:00
parent 7fab68f8c0
commit d72ccb1df6
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export default class LogAppender implements ILogAppender {
this.config = config; this.config = config;
this.current = undefined as unknown as LogAppenderView; this.current = undefined as unknown as LogAppenderView;
this.appenderViews = {}; this.appenderViews = {};
this.fitAllFn = useDebounceFn(this.fitAll).bind(this); this.fitAllFn = useDebounceFn(this.fitAll, 300).bind(this);
} }
// 初始化 // 初始化

View File

@@ -30,7 +30,7 @@ export default class TerminalSessionManager implements ITerminalSessionManager {
constructor() { constructor() {
this.sessions = {}; this.sessions = {};
this.channel = new TerminalChannel(this); this.channel = new TerminalChannel(this);
this.dispatchResizeFn = useDebounceFn(this.dispatchResize).bind(this); this.dispatchResizeFn = useDebounceFn(this.dispatchResize, 300).bind(this);
} }
// 打开 ssh 会话 // 打开 ssh 会话