diff --git a/frontend/src/views/host/file-management/terminal/index.vue b/frontend/src/views/host/file-management/terminal/index.vue index db344bcd8..36737398f 100644 --- a/frontend/src/views/host/file-management/terminal/index.vue +++ b/frontend/src/views/host/file-management/terminal/index.vue @@ -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: '', });