1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 本地连接失败时,打开添加主机抽屉 (#1691)

This commit is contained in:
ssongliu 2023-07-17 16:36:24 +08:00 committed by GitHub
parent e17b80cff4
commit 22fe2a6d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ const onConnTerminal = async (title: string, wsID: number, isLocal?: boolean) =>
latency: 0, latency: 0,
}); });
terminalValue.value = tabIndex; terminalValue.value = tabIndex;
if (!res.data && isLocal) { if (!res.data && title === i18n.global.t('terminal.localhost')) {
dialogRef.value!.acceptParams({ isLocal: true }); dialogRef.value!.acceptParams({ isLocal: true });
} }
nextTick(() => { nextTick(() => {