mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-05 13:29:11 +08:00
Add port to vscodeUrl in SSH remote connection (#5775)
修改了 vscodeUrl 模板以在主机和路径之间包含来自 addForm.port 的端口,确保正确设置 SSH 远程连接。
This commit is contained in:
parent
0194362a35
commit
6f86dda1aa
@ -74,7 +74,7 @@ const submit = async (formEl: FormInstance | undefined) => {
|
||||
}
|
||||
localStorage.setItem('VscodeConnectInfo', JSON.stringify(addForm));
|
||||
dialogVisible.value = false;
|
||||
const vscodeUrl = `vscode://vscode-remote/ssh-remote+${addForm.username}@${addForm.host}${addForm.path}?windowId=_blank`;
|
||||
const vscodeUrl = `vscode://vscode-remote/ssh-remote+${addForm.username}@${addForm.host}:${addForm.port}${addForm.path}?windowId=_blank`;
|
||||
window.open(vscodeUrl);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user