fix: xterminal run script error

This commit is contained in:
engigu
2026-01-14 18:20:44 +08:00
parent f14102ef45
commit 57025e1eb4
2 changed files with 16 additions and 6 deletions
+1 -3
View File
@@ -197,9 +197,7 @@ async function runScript() {
showTerminalDialog.value = true
// 等待 DOM 更新后初始化终端
await nextTick()
setTimeout(() => {
terminalRef.value?.initTerminal(true)
}, 100)
terminalRef.value?.initTerminal(true)
}
function closeTerminal() {