fix: modify

catl
时启龙 2024-11-12 15:16:43 +08:00
parent f0366b0ec3
commit d78a8a3bc5
1 changed files with 1 additions and 5 deletions

View File

@ -32,15 +32,11 @@ export const redisClusterTypeList = [
{ {
name: '三主三从', name: '三主三从',
value: 'tmts' value: 'tmts'
},
{
name: '三主三从2',
value: 'tmts2'
} }
] ]
const translateArrToMap = (list: any[]) => { const translateArrToMap = (list: any[]) => {
const map: any = {} const map: any = {}
list.forEach((item) => { list.forEach(item => {
const { name, value } = item const { name, value } = item
map[value] = name map[value] = name
}) })