mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
fix id
This commit is contained in:
parent
2013fa9767
commit
bdc671ada8
@ -80,6 +80,7 @@ export const dashboardStore = defineStore({
|
||||
const newItem: LayoutConfig = {
|
||||
...NewControl,
|
||||
i: index,
|
||||
id: index,
|
||||
type,
|
||||
metricTypes: [""],
|
||||
metrics: [""],
|
||||
@ -152,9 +153,11 @@ export const dashboardStore = defineStore({
|
||||
if (!children.length) {
|
||||
index = "0";
|
||||
}
|
||||
const id = `${activedGridItem}-${tabIndex}-${index}`;
|
||||
const newItem: LayoutConfig = {
|
||||
...NewControl,
|
||||
i: index,
|
||||
id,
|
||||
type,
|
||||
metricTypes: [""],
|
||||
metrics: [""],
|
||||
|
@ -235,7 +235,6 @@ function optimizeTemplate(
|
||||
children: (LayoutConfig & {
|
||||
moved?: boolean;
|
||||
standard?: unknown;
|
||||
id?: string;
|
||||
})[]
|
||||
) {
|
||||
for (const child of children || []) {
|
||||
@ -407,6 +406,7 @@ async function updateName(d: DashboardItem, value: string) {
|
||||
name: value,
|
||||
};
|
||||
delete c.id;
|
||||
delete c.filters;
|
||||
const setting = {
|
||||
id: d.id,
|
||||
configuration: JSON.stringify(c),
|
||||
|
Loading…
Reference in New Issue
Block a user