mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-27 17:26:03 +08:00
fix: Fix redis cluster connection info modification issue (#9799)
Refs #9798
This commit is contained in:
parent
67ffb5e938
commit
430c75e7ed
1 changed files with 4 additions and 1 deletions
|
|
@ -112,6 +112,7 @@ const loading = ref(false);
|
||||||
const dialogVisible = ref(false);
|
const dialogVisible = ref(false);
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
status: '',
|
status: '',
|
||||||
|
type: '',
|
||||||
systemIP: '',
|
systemIP: '',
|
||||||
password: '',
|
password: '',
|
||||||
serviceName: '',
|
serviceName: '',
|
||||||
|
|
@ -132,11 +133,13 @@ const formRef = ref<FormInstance>();
|
||||||
|
|
||||||
interface DialogProps {
|
interface DialogProps {
|
||||||
from: string;
|
from: string;
|
||||||
|
type: string;
|
||||||
database: string;
|
database: string;
|
||||||
}
|
}
|
||||||
const acceptParams = (params: DialogProps): void => {
|
const acceptParams = (params: DialogProps): void => {
|
||||||
form.password = '';
|
form.password = '';
|
||||||
form.from = params.from;
|
form.from = params.from;
|
||||||
|
form.type = params.type;
|
||||||
form.database = params.database;
|
form.database = params.database;
|
||||||
loadPassword();
|
loadPassword();
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
|
|
@ -151,7 +154,7 @@ const random = async () => {
|
||||||
|
|
||||||
const loadPassword = async () => {
|
const loadPassword = async () => {
|
||||||
if (form.from === 'local') {
|
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.status = res.data.status;
|
||||||
form.password = res.data.password || '';
|
form.password = res.data.password || '';
|
||||||
form.port = res.data.port || 3306;
|
form.port = res.data.port || 3306;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue