fix: 展开内容添加条件

This commit is contained in:
刘洪洪
2023-01-04 15:50:49 +08:00
parent 5ab1dd2f51
commit f4c01a474e
2 changed files with 8 additions and 3 deletions

View File

@@ -302,7 +302,8 @@ export const metricOption = {
str += `<span class="cn-chart-tooltip-content">
${item.seriesName}
</span>`
if (item.seriesName === 'dns response time') {
if (item.seriesName === 'dns response time' || item.seriesName === 'http response time') {
// http response time这种情况在ui上未找到保险起见添加以防不测
str += `<span class="cn-chart-tooltip-value">
${unitConvert(item.data[1], unitTypes.time).join(' ')}
</span>`