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">
|
<div v-loading="loading">
|
||||||
<el-row type="flex" justify="center">
|
<el-row type="flex" justify="center">
|
||||||
<el-col :span="22">
|
<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-form-item :label="$t('container.from')">
|
||||||
<el-radio-group v-model="form.from" @change="changeFrom">
|
<el-radio-group v-model="form.from" @change="changeFrom">
|
||||||
<el-radio label="edit">{{ $t('commons.button.edit') }}</el-radio>
|
<el-radio label="edit">{{ $t('commons.button.edit') }}</el-radio>
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
<el-row type="flex" justify="center">
|
<el-row type="flex" justify="center">
|
||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
<el-form
|
<el-form
|
||||||
|
@submit.prevent
|
||||||
ref="commandInfoRef"
|
ref="commandInfoRef"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<DrawerHeader :header="title + $t('setting.backupAccount')" :back="handleClose" />
|
<DrawerHeader :header="title + $t('setting.backupAccount')" :back="handleClose" />
|
||||||
</template>
|
</template>
|
||||||
<el-form
|
<el-form
|
||||||
|
@submit.prevent
|
||||||
ref="formRef"
|
ref="formRef"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<LayoutContent v-loading="loading" :title="$t('setting.monitor')" :divider="true">
|
<LayoutContent v-loading="loading" :title="$t('setting.monitor')" :divider="true">
|
||||||
<template #main>
|
<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-row>
|
||||||
<el-col :span="1"><br /></el-col>
|
<el-col :span="1"><br /></el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<DrawerHeader :header="$t('setting.entrance')" :back="handleClose" />
|
<DrawerHeader :header="$t('setting.entrance')" :back="handleClose" />
|
||||||
</template>
|
</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-row type="flex" justify="center">
|
||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
<el-form-item :label="$t('setting.entrance')" prop="days">
|
<el-form-item :label="$t('setting.entrance')" prop="days">
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<DrawerHeader :header="$t('setting.mfa')" :back="handleClose" />
|
<DrawerHeader :header="$t('setting.mfa')" :back="handleClose" />
|
||||||
</template>
|
</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-row type="flex" justify="center">
|
||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
<el-form-item :label="$t('setting.mfaHelper1')">
|
<el-form-item :label="$t('setting.mfaHelper1')">
|
||||||
@ -39,7 +39,6 @@
|
|||||||
>
|
>
|
||||||
<el-input v-model="form.secret"></el-input>
|
<el-input v-model="form.secret"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="mode === 'scan' ? $t('setting.mfaHelper3') : $t('setting.mfaCode')"
|
:label="mode === 'scan' ? $t('setting.mfaHelper3') : $t('setting.mfaCode')"
|
||||||
prop="code"
|
prop="code"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<DrawerHeader :header="$t('setting.expirationTime')" :back="handleClose" />
|
<DrawerHeader :header="$t('setting.expirationTime')" :back="handleClose" />
|
||||||
</template>
|
</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-row type="flex" justify="center">
|
||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user