mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 13:15:24 +00:00
update dashboard name
This commit is contained in:
parent
d78ca0cd4b
commit
f17560decc
@ -219,8 +219,8 @@ async function setMetricType(chart?: any) {
|
||||
}
|
||||
}
|
||||
|
||||
function setDashboards() {
|
||||
const { graph } = dashboardStore.selectedGrid;
|
||||
function setDashboards(type?: string) {
|
||||
const graph = type || dashboardStore.selectedGrid.graph;
|
||||
const list = JSON.parse(sessionStorage.getItem("dashboards") || "[]");
|
||||
const arr = list.reduce(
|
||||
(
|
||||
@ -279,7 +279,7 @@ function changeChartType(item: Option) {
|
||||
defaultLen.value = 5;
|
||||
}
|
||||
setMetricType(graph);
|
||||
setDashboards();
|
||||
setDashboards(graph.type);
|
||||
states.dashboardName = "";
|
||||
defaultLen.value = 10;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user