fix: 解决表单回车导致页面刷新的问题 (#664)

This commit is contained in:
ssongliu
2023-04-17 10:20:17 +08:00
committed by GitHub
parent 256c04f3b8
commit 05b7fd1f63
16 changed files with 30 additions and 15 deletions

View File

@@ -18,7 +18,7 @@
<span v-if="row.isDefault">({{ $t('website.default') }})</span>
</div>
<el-form ref="groupForm" v-if="row.edit" :model="row">
<el-form @submit.prevent ref="groupForm" v-if="row.edit" :model="row">
<el-form-item prop="name" v-if="row.edit" :rules="Rules.name">
<div style="margin-top: 20px; width: 100%"><el-input v-model="row.name" /></div>
</el-form-item>