🔨 命令发送.
This commit is contained in:
@@ -274,6 +274,17 @@ export default defineStore('terminal', {
|
||||
}
|
||||
},
|
||||
|
||||
// 粘贴命令到会话
|
||||
pasteCommandToSession(session: ISshSession | undefined, command: string, newLine: boolean = false) {
|
||||
const handler = session?.handler;
|
||||
if (handler && handler.enabledStatus('pasteOrigin')) {
|
||||
if (newLine) {
|
||||
command = `${command}\r\n`;
|
||||
}
|
||||
handler.pasteOrigin(command);
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user