feat :endpoint operation增加Metric target按钮

This commit is contained in:
likexuan
2022-12-19 14:50:42 +08:00
parent 446ac7127b
commit ea1c9b36b9
2 changed files with 5 additions and 4 deletions

View File

@@ -344,11 +344,12 @@ export default {
let str = ''
if (!lodash.isEmpty(params)) {
for (const key in params) {
str += key + '=' + params[key]
str += key + '=' + params[key] + '&'
}
}
const linkTarget = protocol + ':' + '//' + host + ':' + port + metricsPath + '?' + str
window.open(linkTarget, 'target')
const linkTarget = `${protocol}://${host}:${port + metricsPath}${str ? '?' + str.slice(0, str.length - 1) : ''}`
// window.open(linkTarget, 'target')
window.open(linkTarget)
},
topology (row, type) {
const chartInfo = lodash.cloneDeep(defaultData)