fix: Fix command argument formatting in terminal initlinux (#11484)

This commit is contained in:
l061x
2025-12-26 22:03:24 +08:00
committed by GitHub
parent e8059d3676
commit 4e7b654090
@@ -55,7 +55,7 @@ const initTerm = async (cwd: string) => {
await nextTick();
terminalRef.value!.acceptParams({
endpoint: '/api/v2/hosts/terminal',
args: `command=${encodeURIComponent(`clear && cd ${cwd}`)}`,
args: `command=${encodeURIComponent(`clear && cd "${cwd}"`)}`,
error: '',
initCmd: '',
});