diff --git a/src/views/dashboard/graphs/EndpointList.vue b/src/views/dashboard/graphs/EndpointList.vue
index ab32ba11..41bba2c3 100644
--- a/src/views/dashboard/graphs/EndpointList.vue
+++ b/src/views/dashboard/graphs/EndpointList.vue
@@ -44,7 +44,7 @@ limitations under the License. -->
@@ -188,9 +188,9 @@ function getUnit(index: number) {
props.config.metricConfig[index].unit) ||
"";
if (u) {
- return `(${u})`;
+ return `(${encodeURIComponent(u)})`;
}
- return u;
+ return encodeURIComponent("");
}
watch(
() => [props.config.metricTypes, props.config.metrics],
diff --git a/src/views/dashboard/graphs/InstanceList.vue b/src/views/dashboard/graphs/InstanceList.vue
index e5dcf3fc..b0291fbd 100644
--- a/src/views/dashboard/graphs/InstanceList.vue
+++ b/src/views/dashboard/graphs/InstanceList.vue
@@ -44,7 +44,7 @@ limitations under the License. -->
@@ -239,9 +239,9 @@ function getUnit(index: number) {
props.config.metricConfig[index].unit) ||
"";
if (u) {
- return `(${u})`;
+ return `(${encodeURIComponent(u)})`;
}
- return u;
+ return encodeURIComponent("");
}
watch(
diff --git a/src/views/dashboard/graphs/ServiceList.vue b/src/views/dashboard/graphs/ServiceList.vue
index c6c82d83..8147ef0e 100644
--- a/src/views/dashboard/graphs/ServiceList.vue
+++ b/src/views/dashboard/graphs/ServiceList.vue
@@ -56,7 +56,7 @@ limitations under the License. -->
@@ -281,9 +281,9 @@ function getUnit(index: number) {
props.config.metricConfig[index].unit) ||
"";
if (u) {
- return `(${u})`;
+ return `(${encodeURIComponent(u)})`;
}
- return u;
+ return encodeURIComponent("");
}
watch(
() => [props.config.metricTypes, props.config.metrics],