mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
fix: config
This commit is contained in:
parent
190d66268b
commit
70704bb232
@ -80,11 +80,13 @@ limitations under the License. -->
|
||||
tips: encodeURIComponent(dashboardStore.selectedGrid.widget.tips),
|
||||
};
|
||||
const metricConfig = (dashboardStore.selectedGrid.metricConfig || []).map((d: any) => {
|
||||
return {
|
||||
...d,
|
||||
label: encodeURIComponent(d.label),
|
||||
unit: encodeURIComponent(d.unit),
|
||||
};
|
||||
if (d.label) {
|
||||
d.label = encodeURIComponent(d.label);
|
||||
}
|
||||
if (d.unit) {
|
||||
d.unit = encodeURIComponent(d.unit);
|
||||
}
|
||||
return d;
|
||||
});
|
||||
const config = JSON.stringify({
|
||||
type: dashboardStore.selectedGrid.type,
|
||||
|
Loading…
Reference in New Issue
Block a user