@@ -19,9 +19,9 @@ import {
1919 getProxyId ,
2020 subscribeProxy ,
2121} from ' @tap/api/src/core/proxy'
22-
2322import resize from ' @tap/component/src/directives/resize'
2423import SchemaToForm from ' @tap/form/src/SchemaToForm.vue'
24+
2525import i18n from ' @tap/i18n'
2626import { checkConnectionName , submitForm , uuid } from ' @tap/shared'
2727import { isEmpty } from ' lodash-es'
@@ -123,7 +123,6 @@ export default {
123123 total: 0 ,
124124 },
125125 showAgentIpAlert: false ,
126- schemaFormInstance: null ,
127126 }
128127 },
129128 computed: {
@@ -140,6 +139,12 @@ export default {
140139 : ' net'
141140 } /prerequisites/allow-access-network`
142141 },
142+
143+ schemaFormInstance: {
144+ get () {
145+ return this .$refs .schemaToForm ? .form
146+ },
147+ },
143148 },
144149 async created () {
145150 if (! this .isDaas ) {
@@ -160,8 +165,6 @@ export default {
160165 }
161166 },
162167 mounted () {
163- // this.schemaFormInstance = markRaw(this.$refs.schemaToForm?.form) // 获取表单的 form
164- this .schemaFormInstance = this .$refs .schemaToForm ? .form // 获取表单的 form
165168 this .id = this .$route .params .id || ' '
166169 const { fromPath } = this .$route .query
167170 if (fromPath) {
@@ -898,7 +901,7 @@ export default {
898901 properties: {
899902 heartbeatEnable: {
900903 type: ' boolean' ,
901- default: true ,
904+ default: false ,
902905 ' x-component' : ' Switch' ,
903906 },
904907 },
@@ -1587,7 +1590,7 @@ export default {
15871590 },
15881591
15891592 getForm() {
1590- return this.schemaFormInstance
1593+ return this.$refs.schemaToForm?.form
15911594 },
15921595
15931596 handleDebug() {
0 commit comments