fix: Remove the redis password restriction (#9184)

This commit is contained in:
ssongliu 2025-06-19 16:36:59 +08:00 committed by GitHub
parent 060dd08167
commit a6a2d9991c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
<template>
<DrawerPro v-model="dialogVisible" :header="$t('database.databaseConnInfo')" @close="handleClose" size="small">
<el-form @submit.prevent v-loading="loading" ref="formRef" :model="form" label-position="top" :rules="rules">
<el-form @submit.prevent v-loading="loading" ref="formRef" :model="form" label-position="top">
<el-form-item :label="$t('database.containerConn')" v-if="form.from === 'local'">
<el-card class="mini-border-card">
<el-descriptions :column="1">
@ -61,7 +61,7 @@
type="password"
show-password
clearable
v-model="form.password"
v-model.trim="form.password"
/>
<el-button-group>
<CopyButton class="copy_button" :content="form.password" />
@ -69,7 +69,6 @@
{{ $t('commons.button.random') }}
</el-button>
</el-button-group>
<span class="input-help">{{ $t('commons.rule.illegalChar') }}</span>
</el-form-item>
<div v-if="form.from !== 'local'">
@ -105,7 +104,6 @@ import { getAppConnInfo } from '@/api/modules/app';
import { MsgSuccess } from '@/utils/message';
import { getRandomStr } from '@/utils/util';
import { getAgentSettingInfo } from '@/api/modules/setting';
import { Rules } from '@/global/form-rules';
import { GlobalStore } from '@/store';
const globalStore = GlobalStore();
@ -124,9 +122,6 @@ const form = reactive({
database: '',
remoteIP: '',
});
const rules = reactive({
password: [Rules.requiredInput, Rules.noSpace, Rules.illegal],
});
const confirmDialogRef = ref();