Browse Source

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

pull/826/head
ssongliu 2 years ago committed by GitHub
parent
commit
3b0c844f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/src/views/container/compose/create/index.vue
  2. 1
      frontend/src/views/host/terminal/command/index.vue
  3. 1
      frontend/src/views/setting/backup-account/operate/index.vue
  4. 2
      frontend/src/views/setting/monitor/index.vue
  5. 2
      frontend/src/views/setting/safe/entrance/index.vue
  6. 3
      frontend/src/views/setting/safe/mfa/index.vue
  7. 2
      frontend/src/views/setting/safe/timeout/index.vue

2
frontend/src/views/container/compose/create/index.vue

@ -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>

1
frontend/src/views/host/terminal/command/index.vue

@ -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"

1
frontend/src/views/setting/backup-account/operate/index.vue

@ -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
frontend/src/views/setting/monitor/index.vue

@ -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">

2
frontend/src/views/setting/safe/entrance/index.vue

@ -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">

3
frontend/src/views/setting/safe/mfa/index.vue

@ -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"

2
frontend/src/views/setting/safe/timeout/index.vue

@ -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…
Cancel
Save