fix: params

This commit is contained in:
Fine 2023-02-02 16:19:24 +08:00
parent 5635a6ee36
commit 67c11c4da5

View File

@ -75,9 +75,13 @@ limitations under the License. -->
step: appStore.duration.step,
utc: appStore.utc,
});
const w = {
title: encodeURIComponent(dashboardStore.selectedGrid.widget.title),
tips: encodeURIComponent(dashboardStore.selectedGrid.widget.tips),
};
const config = JSON.stringify({
type: dashboardStore.selectedGrid.type,
widget: dashboardStore.selectedGrid.widget,
widget: w,
graph: dashboardStore.selectedGrid.graph,
metrics: dashboardStore.selectedGrid.metrics,
metricTypes: dashboardStore.selectedGrid.metricTypes,