fix: Fix redis cluster connection info modification issue (#9799)

Refs #9798
This commit is contained in:
ssongliu 2025-08-01 18:47:23 +08:00 committed by GitHub
parent 67ffb5e938
commit 430c75e7ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,6 +112,7 @@ const loading = ref(false);
const dialogVisible = ref(false);
const form = reactive({
status: '',
type: '',
systemIP: '',
password: '',
serviceName: '',
@ -132,11 +133,13 @@ const formRef = ref<FormInstance>();
interface DialogProps {
from: string;
type: string;
database: string;
}
const acceptParams = (params: DialogProps): void => {
form.password = '';
form.from = params.from;
form.type = params.type;
form.database = params.database;
loadPassword();
dialogVisible.value = true;
@ -151,7 +154,7 @@ const random = async () => {
const loadPassword = async () => {
if (form.from === 'local') {
const res = await getAppConnInfo('redis', form.database);
const res = await getAppConnInfo(form.type, form.database);
form.status = res.data.status;
form.password = res.data.password || '';
form.port = res.data.port || 3306;