Skip to content

Commit 7cd0922

Browse files
committed
refactor(DatabaseForm): remove unused markRaw import and simplify schemaFormInstance assignment; update default value for heartbeatEnable
1 parent 7e07584 commit 7cd0922

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/business/src/views/connections/DatabaseForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import i18n from '@tap/i18n'
2626
import { checkConnectionName, submitForm, uuid } from '@tap/shared'
2727
import { isEmpty } from 'lodash-es'
2828
29-
import { markRaw } from 'vue'
3029
import ConnectorDoc from '../../components/ConnectorDoc.vue'
3130
import mixins from '../../components/create-connection/mixins'
3231
import SceneDialog from '../../components/create-connection/SceneDialog.vue'
@@ -161,7 +160,8 @@ export default {
161160
}
162161
},
163162
mounted() {
164-
this.schemaFormInstance = markRaw(this.$refs.schemaToForm?.form) // 获取表单的 form
163+
// this.schemaFormInstance = markRaw(this.$refs.schemaToForm?.form) // 获取表单的 form
164+
this.schemaFormInstance = this.$refs.schemaToForm?.form // 获取表单的 form
165165
this.id = this.$route.params.id || ''
166166
const { fromPath } = this.$route.query
167167
if (fromPath) {
@@ -898,7 +898,7 @@ export default {
898898
properties: {
899899
heartbeatEnable: {
900900
type: 'boolean',
901-
default: false,
901+
default: true,
902902
'x-component': 'Switch',
903903
},
904904
},

0 commit comments

Comments
 (0)