NEZ-2840 fix:当 endpoint 配置联邦时,Metric target 访问失败
This commit is contained in:
@@ -345,7 +345,14 @@ export default {
|
|||||||
let str = ''
|
let str = ''
|
||||||
if (!lodash.isEmpty(params)) {
|
if (!lodash.isEmpty(params)) {
|
||||||
for (const key in params) {
|
for (const key in params) {
|
||||||
str += key + '=' + params[key] + '&'
|
const arr = params[key]
|
||||||
|
if (arr.length > 1) {
|
||||||
|
arr.forEach(item => {
|
||||||
|
str += key + '=' + item + '&'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
str += key + '=' + params[key][0] + '&'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const linkTarget = `${protocol}://${host}:${port + metricsPath}${str ? '?' + str.slice(0, str.length - 1) : ''}`
|
const linkTarget = `${protocol}://${host}:${port + metricsPath}${str ? '?' + str.slice(0, str.length - 1) : ''}`
|
||||||
|
|||||||
Reference in New Issue
Block a user