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: '主从模式(一主一从)', name: '主从模式(一主一从)',
value: 'msv' value: 'msv'
}, { },
{
name: '主备模式(一主一从)', name: '主备模式(一主一从)',
value: 'msb' value: 'msb'
}, { },
{
name: 'MHA模式(一主两从)', name: 'MHA模式(一主两从)',
value: 'mha' value: 'mha'
}, { },
{
name: 'MGR单主(一主两从)', name: 'MGR单主(一主两从)',
value: 'mgr.single' value: 'mgr.single'
}, { },
{
name: 'MGR多主(三|五|七)', name: 'MGR多主(三|五|七)',
value: 'mgr.multi' value: 'mgr.multi'
}]; }
export const redisClusterTypeList = [{ ]
export const redisClusterTypeList = [
{
name: '一主两从', name: '一主两从',
value: 'omts' value: 'omts'
}, { },
{
name: '一主两从三哨兵', name: '一主两从三哨兵',
value: 'omtsts' value: 'omtsts'
}, { },
{
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
}); })
return map; return map
} }
export const clusterModeTypeMap = translateArrToMap([...clusterTypeList, ...redisClusterTypeList]) export const clusterModeTypeMap = translateArrToMap([...clusterTypeList, ...redisClusterTypeList])

View File

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