mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
fix: label
This commit is contained in:
parent
c9f75641ca
commit
030df65e21
@ -86,13 +86,14 @@ limitations under the License. -->
|
||||
});
|
||||
const { widget, graph, metrics, metricTypes, metricConfig } = dashboardStore.selectedGrid;
|
||||
const c = (metricConfig || []).map((d: any) => {
|
||||
const t: any = {};
|
||||
if (d.label) {
|
||||
d.label = encodeURIComponent(d.label);
|
||||
t.label = encodeURIComponent(d.label);
|
||||
}
|
||||
if (d.unit) {
|
||||
d.unit = encodeURIComponent(d.unit);
|
||||
t.unit = encodeURIComponent(d.unit);
|
||||
}
|
||||
return d;
|
||||
return t;
|
||||
});
|
||||
const opt: any = {
|
||||
type: dashboardStore.selectedGrid.type,
|
||||
|
Loading…
Reference in New Issue
Block a user