From 430c75e7ed81ec277499d84a69e6955fb5658514 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 1 Aug 2025 18:47:23 +0800 Subject: [PATCH] fix: Fix redis cluster connection info modification issue (#9799) Refs #9798 --- frontend/src/views/database/redis/conn/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/database/redis/conn/index.vue b/frontend/src/views/database/redis/conn/index.vue index 15a900100..2558e1e03 100644 --- a/frontend/src/views/database/redis/conn/index.vue +++ b/frontend/src/views/database/redis/conn/index.vue @@ -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(); 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;