fix(ci): 质量检查 - 同步格式、前端断言与存储降级

This commit is contained in:
cn-derekdu authored and ddCat committed 2026-09-19 21:04:03 +08:00
1 parent 6edd8b1e8b
commit d8e9928ce3
12 files changed
+57 -46

No files matched your search

+2 -1
View File
@@ -420,7 +420,8 @@ const canvasStorage: PersistStorage<CanvasStore> = {
if (canvasSaveTimers.get(scope) === timer) canvasSaveTimers.delete(scope);
void writeQueuedCanvasPersist(scope, token).catch((error) => {
// 自动保存无法把异常返回给原始状态更新调用方,但失败队列仍会保留给下一次写入或显式 flush 重试。
console.error("画布本地持久化失败,已保留待写队列", { scope, error });
// 自动保存失败有队列兜底,属可降级场景;在无本地存储的环境(如测试进程)不应升级为错误级日志。
console.warn("画布本地持久化失败,已保留待写队列", { scope, error });
});
}, 400);
canvasSaveTimers.set(scope, timer);