mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 08:00:55 +00:00
fix: Fix command argument formatting in terminal initlinux (#11484)
This commit is contained in:
@@ -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: '',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user