feat: UDM-redis连接多加从库地址

This commit is contained in:
TsMask
2025-09-12 17:49:30 +08:00
parent c3e046d9d9
commit 5e2184945c
3 changed files with 43 additions and 7 deletions

View File

@@ -375,7 +375,20 @@ function fnNeTypeChange(v: any) {
authMode: '0',
password: 'helloearth',
dbName: '0',
remark: '',
remark: 'master',
});
modalState.from.hosts.push({
hostId: undefined,
hostType: 'redis',
groupId: '1',
title: 'REDIS_NE_6379',
addr: modalState.from.ip,
port: 6379,
user: 'udmdb',
authMode: '0',
password: 'helloearth',
dbName: '0',
remark: 'slave',
});
}
@@ -671,10 +684,7 @@ onMounted(() => {
</a-form-item>
</a-col>
<a-col :lg="12" :md="12" :xs="24">
<a-form-item
:label="t('views.ne.neHost.port')"
name="neHost.port"
>
<a-form-item :label="t('views.ne.neHost.port')">
<a-input-number
v-model:value="host.port"
:min="10"

View File

@@ -262,7 +262,20 @@ function fnNeTypeChange(v: any) {
authMode: '0',
password: 'helloearth',
dbName: '0',
remark: '',
remark: 'master',
});
modalState.from.hosts.push({
hostId: undefined,
hostType: 'redis',
groupId: '1',
title: 'REDIS_NE_6379',
addr: modalState.from.ip,
port: 6379,
user: 'udmdb',
authMode: '0',
password: 'helloearth',
dbName: '0',
remark: 'slave',
});
}
}

View File

@@ -221,7 +221,20 @@ function fnNeTypeChange(v: any, data: any) {
authMode: '0',
password: 'helloearth',
dbName: '0',
remark: '',
remark: 'master',
});
modalState.from.hosts.push({
hostId: undefined,
hostType: 'redis',
groupId: '1',
title: 'REDIS_NE_6379',
addr: modalState.from.ip,
port: 6379,
user: 'udmdb',
authMode: '0',
password: 'helloearth',
dbName: '0',
remark: 'slave',
});
}
}