fix(数据源): 阻止配置表单回车触发原生提交导致页面刷新

This commit is contained in:
dataeaseShu
2026-09-28 09:47:37 +08:00
parent db1d72cf6b
commit ef353bd0cb
4 changed files with 5 additions and 0 deletions

View File

@@ -705,6 +705,7 @@ defineExpose({
<el-row v-show="active === 0 && dsType === 'API'">
<el-form
@submit.prevent
ref="apiItemBasicInfo"
:model="apiItem"
label-position="top"
@@ -820,6 +821,7 @@ defineExpose({
</el-row>
<el-row v-show="active === 1">
<el-form
@submit.prevent
style="width: 100%"
ref="apiItemForm"
:model="apiItem"

View File

@@ -1580,6 +1580,7 @@ defineExpose({
</template>
</el-form>
<el-form
@submit.prevent
ref="dsApiForm"
:model="form"
style="margin-top: 24px"

View File

@@ -553,6 +553,7 @@ defineExpose({
<div class="excel-detail">
<div class="detail-inner">
<el-form
@submit.prevent
ref="excelForm"
require-asterisk-position="right"
:model="param"

View File

@@ -958,6 +958,7 @@ defineExpose({
</div>
</template>
<el-form
@submit.prevent
ref="dsApiForm"
:model="form"
style="margin-top: 24px"