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),
|
tips: encodeURIComponent(dashboardStore.selectedGrid.widget.tips),
|
||||||
};
|
};
|
||||||
const metricConfig = (dashboardStore.selectedGrid.metricConfig || []).map((d: any) => {
|
const metricConfig = (dashboardStore.selectedGrid.metricConfig || []).map((d: any) => {
|
||||||
return {
|
if (d.label) {
|
||||||
...d,
|
d.label = encodeURIComponent(d.label);
|
||||||
label: encodeURIComponent(d.label),
|
}
|
||||||
unit: encodeURIComponent(d.unit),
|
if (d.unit) {
|
||||||
};
|
d.unit = encodeURIComponent(d.unit);
|
||||||
|
}
|
||||||
|
return d;
|
||||||
});
|
});
|
||||||
const config = JSON.stringify({
|
const config = JSON.stringify({
|
||||||
type: dashboardStore.selectedGrid.type,
|
type: dashboardStore.selectedGrid.type,
|
||||||
|
Loading…
Reference in New Issue
Block a user