diff --git a/frontend/src/components/dialogs/ConnectionDialog.vue b/frontend/src/components/dialogs/ConnectionDialog.vue index 525e527..e7ea165 100644 --- a/frontend/src/components/dialogs/ConnectionDialog.vue +++ b/frontend/src/components/dialogs/ConnectionDialog.vue @@ -126,6 +126,7 @@ const onSaveConnection = async () => { const resetForm = () => { generalForm.value = connectionStore.newDefaultConnection() generalFormRef.value?.restoreValidation() + testing.value = false showTestResult.value = false testResult.value = '' tab.value = 'general' @@ -135,6 +136,7 @@ watch( () => dialogStore.connDialogVisible, (visible) => { if (visible) { + resetForm() editName.value = get(dialogStore.connParam, 'name', '') generalForm.value = dialogStore.connParam || connectionStore.newDefaultConnection() generalForm.value.ssh.loginType = generalForm.value.ssh.loginType || 'pwd' @@ -286,7 +288,7 @@ const onClose = () => { + :placeholder="$t('dialogue.connection.ssh_addr_tip')" /> :