From 16f33128da9bacf90f816dd12eea785a89d49112 Mon Sep 17 00:00:00 2001 From: qiqi Date: Fri, 4 Dec 2026 13:19:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(storage):=20setItem=20=E5=90=8C=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E8=B7=B3=E8=BF=87=EF=BC=9BlastUsed=20=E7=A7=BB?= =?UTF-8?q?=E5=87=BA=E5=88=86=E6=9D=BF=E6=96=87=E4=BB=B6=EF=BC=9B=E5=BA=93?= =?UTF-8?q?/data.json=20=E6=8C=89=E5=8F=98=E5=8C=96=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 16d3191..b4e1c43 100644 --- a/app.js +++ b/app.js @@ -3273,7 +3273,7 @@ try { if (window.IWBMiniMapFit && typeof window.IWBMiniMapFit.install === 'funct try { stripBigDataUrlsSync({ workspaces: list }, true) } catch (e) { /* 尽力而为 */ } for (const w of list) { if (!w || !w.id) continue - const rec = { id: w.id, name: w.name || '未命名画布', nodes: w.nodes || [], edges: w.edges || [], groups: w.groups || [], category: w.category || '', starred: !!w.starred, deleted: !!w.deleted, lastUsed: typeof w.lastUsed === 'number' ? w.lastUsed : 0 } + const rec = { id: w.id, name: w.name || '未命名画布', nodes: w.nodes || [], edges: w.edges || [], groups: w.groups || [], category: w.category || '', starred: !!w.starred, deleted: !!w.deleted } // 2026-12-04:lastUsed 只进索引,避免每次保存都重写画布文件 // 兜底精简:所有 localStorage 写盘必经此处,漏了就会把 result 里的 job/snapshot 落盘(体积翻十倍) if (GenerationResults) rec.nodes = rec.nodes.map(GenerationResults.slimNode) const sig = wsBoardSig(rec)