From 21e126da38a9862f1db5b4ef32b57a3ff1c602d0 Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 17 Jan 2024 12:02:42 +0800 Subject: [PATCH] fix: list --- src/store/modules/dashboard.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 6aca1c06..c784acee 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -344,11 +344,9 @@ export const dashboardStore = defineStore({ const key = [c.layer, c.entity, c.name].join("_"); list.push({ + ...c, id: t.id, - layer: c.layer, - entity: c.entity, - name: c.name, - isRoot: c.isRoot, + children: undefined, }); sessionStorage.setItem(key, JSON.stringify({ id: t.id, configuration: c })); }