mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 14:45:25 +00:00
encode unit
This commit is contained in:
parent
94549c2aaa
commit
0437133917
@ -44,7 +44,7 @@ limitations under the License. -->
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(metric, index) in colMetrics"
|
v-for="(metric, index) in colMetrics"
|
||||||
:label="`${metric} ${getUnit(index)}`"
|
:label="`${metric} ${decodeURIComponent(getUnit(index))}`"
|
||||||
:key="metric + index"
|
:key="metric + index"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@ -188,9 +188,9 @@ function getUnit(index: number) {
|
|||||||
props.config.metricConfig[index].unit) ||
|
props.config.metricConfig[index].unit) ||
|
||||||
"";
|
"";
|
||||||
if (u) {
|
if (u) {
|
||||||
return `(${u})`;
|
return `(${encodeURIComponent(u)})`;
|
||||||
}
|
}
|
||||||
return u;
|
return encodeURIComponent("");
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
() => [props.config.metricTypes, props.config.metrics],
|
() => [props.config.metricTypes, props.config.metrics],
|
||||||
|
@ -44,7 +44,7 @@ limitations under the License. -->
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(metric, index) in colMetrics"
|
v-for="(metric, index) in colMetrics"
|
||||||
:label="`${metric} ${getUnit(index)}`"
|
:label="`${metric} ${decodeURIComponent(getUnit(index))}`"
|
||||||
:key="metric + index"
|
:key="metric + index"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@ -239,9 +239,9 @@ function getUnit(index: number) {
|
|||||||
props.config.metricConfig[index].unit) ||
|
props.config.metricConfig[index].unit) ||
|
||||||
"";
|
"";
|
||||||
if (u) {
|
if (u) {
|
||||||
return `(${u})`;
|
return `(${encodeURIComponent(u)})`;
|
||||||
}
|
}
|
||||||
return u;
|
return encodeURIComponent("");
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
@ -56,7 +56,7 @@ limitations under the License. -->
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-for="(metric, index) in colMetrics"
|
v-for="(metric, index) in colMetrics"
|
||||||
:label="`${metric} ${getUnit(index)}`"
|
:label="`${metric} ${decodeURIComponent(getUnit(index))}`"
|
||||||
:key="metric + index"
|
:key="metric + index"
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@ -281,9 +281,9 @@ function getUnit(index: number) {
|
|||||||
props.config.metricConfig[index].unit) ||
|
props.config.metricConfig[index].unit) ||
|
||||||
"";
|
"";
|
||||||
if (u) {
|
if (u) {
|
||||||
return `(${u})`;
|
return `(${encodeURIComponent(u)})`;
|
||||||
}
|
}
|
||||||
return u;
|
return encodeURIComponent("");
|
||||||
}
|
}
|
||||||
watch(
|
watch(
|
||||||
() => [props.config.metricTypes, props.config.metrics],
|
() => [props.config.metricTypes, props.config.metrics],
|
||||||
|
Loading…
Reference in New Issue
Block a user