fix: modify

catl
时启龙 2024-10-30 13:58:55 +08:00
parent 685f0fc12a
commit f3e2eece29
2 changed files with 47 additions and 33 deletions

View File

@ -1,36 +1,50 @@
export const clusterTypeList = [{
export const clusterTypeList = [
{
name: '主从模式(一主一从)',
value: 'msv'
}, {
},
{
name: '主备模式(一主一从)',
value: 'msb'
}, {
},
{
name: 'MHA模式(一主两从)',
value: 'mha'
}, {
},
{
name: 'MGR单主(一主两从)',
value: 'mgr.single'
}, {
},
{
name: 'MGR多主(三|五|七)',
value: 'mgr.multi'
}];
export const redisClusterTypeList = [{
}
]
export const redisClusterTypeList = [
{
name: '一主两从',
value: 'omts'
}, {
},
{
name: '一主两从三哨兵',
value: 'omtsts'
}, {
},
{
name: '三主三从',
value: 'tmts'
}];
},
{
name: '三主三从2',
value: 'tmts2'
}
]
const translateArrToMap = (list: any[]) => {
const map: any = {};
const map: any = {}
list.forEach(item => {
const { name, value } = item;
map[value] = name;
});
return map;
const { name, value } = item
map[value] = name
})
return map
}
export const clusterModeTypeMap = translateArrToMap([...clusterTypeList, ...redisClusterTypeList])

View File

@ -12,9 +12,9 @@ const CompressPlugin = require('compress-webpack-plugin')
function resolve(dir) {
return path.join(__dirname, dir)
}
const httpType = 'https://'
const httpType = 'http://'
// const proxyUrl = 'develop.cmp56.com:60006/' // 代理地址设置
const proxyUrl = '23.33.3.22:60006/' // 代理地址设置
const proxyUrl = '10.10.33.54:60006' // 代理地址设置
// const publicPath = process.env.NODE_ENV === 'production' ? '/cop-web/' : '/cop-web/';
const publicPath = '/cop-web/'
module.exports = {