mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-07 07:34:26 +08:00
fix: Fix command argument formatting in terminal initlinux
This commit is contained in:
parent
ffadc6721b
commit
c5ec9e1f05
1 changed files with 1 additions and 1 deletions
|
|
@ -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: '',
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue