fix: list

This commit is contained in:
Fine 2024-01-17 12:02:42 +08:00
parent a46b91d1cf
commit 21e126da38

View File

@ -344,11 +344,9 @@ export const dashboardStore = defineStore({
const key = [c.layer, c.entity, c.name].join("_"); const key = [c.layer, c.entity, c.name].join("_");
list.push({ list.push({
...c,
id: t.id, id: t.id,
layer: c.layer, children: undefined,
entity: c.entity,
name: c.name,
isRoot: c.isRoot,
}); });
sessionStorage.setItem(key, JSON.stringify({ id: t.id, configuration: c })); sessionStorage.setItem(key, JSON.stringify({ id: t.id, configuration: c }));
} }