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

pull/1696/head
ssongliu 1 year ago committed by GitHub
parent e17b80cff4
commit 22fe2a6d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save