fix: label

This commit is contained in:
Fine 2023-02-07 14:19:11 +08:00
parent c9f75641ca
commit 030df65e21

View File

@ -86,13 +86,14 @@ limitations under the License. -->
}); });
const { widget, graph, metrics, metricTypes, metricConfig } = dashboardStore.selectedGrid; const { widget, graph, metrics, metricTypes, metricConfig } = dashboardStore.selectedGrid;
const c = (metricConfig || []).map((d: any) => { const c = (metricConfig || []).map((d: any) => {
const t: any = {};
if (d.label) { if (d.label) {
d.label = encodeURIComponent(d.label); t.label = encodeURIComponent(d.label);
} }
if (d.unit) { if (d.unit) {
d.unit = encodeURIComponent(d.unit); t.unit = encodeURIComponent(d.unit);
} }
return d; return t;
}); });
const opt: any = { const opt: any = {
type: dashboardStore.selectedGrid.type, type: dashboardStore.selectedGrid.type,