1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

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

This commit is contained in:
ssongliu 2023-04-28 15:16:22 +08:00 committed by GitHub
parent 566a4f3568
commit 3b0c844f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 6 deletions

View File

@ -12,7 +12,7 @@
<div v-loading="loading">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form ref="formRef" label-position="top" :model="form" :rules="rules" label-width="80px">
<el-form ref="formRef" @submit.prevent label-position="top" :model="form" :rules="rules">
<el-form-item :label="$t('container.from')">
<el-radio-group v-model="form.from" @change="changeFrom">
<el-radio label="edit">{{ $t('commons.button.edit') }}</el-radio>

View File

@ -44,6 +44,7 @@
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form
@submit.prevent
ref="commandInfoRef"
label-width="100px"
label-position="top"

View File

@ -5,6 +5,7 @@
<DrawerHeader :header="title + $t('setting.backupAccount')" :back="handleClose" />
</template>
<el-form
@submit.prevent
ref="formRef"
v-loading="loading"
label-position="top"

View File

@ -2,7 +2,7 @@
<div>
<LayoutContent v-loading="loading" :title="$t('setting.monitor')" :divider="true">
<template #main>
<el-form :model="form" ref="panelFormRef" label-position="left" label-width="160px">
<el-form :model="form" @submit.prevent ref="panelFormRef" label-position="left" label-width="160px">
<el-row>
<el-col :span="1"><br /></el-col>
<el-col :span="12">

View File

@ -4,7 +4,7 @@
<template #header>
<DrawerHeader :header="$t('setting.entrance')" :back="handleClose" />
</template>
<el-form label-position="top" v-loading="loading">
<el-form label-position="top" @submit.prevent v-loading="loading">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form-item :label="$t('setting.entrance')" prop="days">

View File

@ -10,7 +10,7 @@
<template #header>
<DrawerHeader :header="$t('setting.mfa')" :back="handleClose" />
</template>
<el-form :model="form" ref="formRef" v-loading="loading" label-position="top">
<el-form :model="form" ref="formRef" @submit.prevent v-loading="loading" label-position="top">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form-item :label="$t('setting.mfaHelper1')">
@ -39,7 +39,6 @@
>
<el-input v-model="form.secret"></el-input>
</el-form-item>
<el-form-item
:label="mode === 'scan' ? $t('setting.mfaHelper3') : $t('setting.mfaCode')"
prop="code"

View File

@ -4,7 +4,7 @@
<template #header>
<DrawerHeader :header="$t('setting.expirationTime')" :back="handleClose" />
</template>
<el-form ref="timeoutFormRef" label-position="top" :model="form">
<el-form ref="timeoutFormRef" @submit.prevent label-position="top" :model="form">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form-item