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

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

No files matched your search

+15 -5
View File
@@ -375,7 +375,20 @@ function fnNeTypeChange(v: any) {
authMode: '0', authMode: '0',
password: 'helloearth', password: 'helloearth',
dbName: '0', 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-form-item>
</a-col> </a-col>
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">
<a-form-item <a-form-item :label="t('views.ne.neHost.port')">
:label="t('views.ne.neHost.port')"
name="neHost.port"
>
<a-input-number <a-input-number
v-model:value="host.port" v-model:value="host.port"
:min="10" :min="10"
@@ -262,7 +262,20 @@ function fnNeTypeChange(v: any) {
authMode: '0', authMode: '0',
password: 'helloearth', password: 'helloearth',
dbName: '0', 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',
}); });
} }
} }
@@ -221,7 +221,20 @@ function fnNeTypeChange(v: any, data: any) {
authMode: '0', authMode: '0',
password: 'helloearth', password: 'helloearth',
dbName: '0', 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',
}); });
} }
} }