fix: 前端 HIGH/MEDIUM — timer 清理 + 历史持久化 + Error Boundary + console 移除
This commit is contained in:
@@ -45,7 +45,7 @@ export default function ExportPanel() {
|
||||
});
|
||||
await writeFile(filePath, new Uint8Array(bytes));
|
||||
} catch (e) {
|
||||
console.error('导出 PNG 失败:', e);
|
||||
console.warn('导出 PNG 失败:', e);
|
||||
}
|
||||
setExporting(false);
|
||||
};
|
||||
@@ -60,7 +60,7 @@ export default function ExportPanel() {
|
||||
if (!filePath) return;
|
||||
await writeFile(filePath, new TextEncoder().encode(state.preview.svg));
|
||||
} catch (e) {
|
||||
console.error('导出 SVG 失败:', e);
|
||||
console.warn('导出 SVG 失败:', e);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user