mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决回车导致页面刷新的问题 (#824)
This commit is contained in:
parent
566a4f3568
commit
3b0c844f33
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user