From 80256a407939ce618e375b1ea7b6f25c35e5a9a9 Mon Sep 17 00:00:00 2001 From: cillin Date: Mon, 23 Mar 2026 18:20:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E6=B7=BB=E5=8A=A0=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E7=9A=84=20lastDayHistory=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=88=B0=20runtimeStore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 App.jsx 中使用不存在的 store 字段导致的潜在运行时错误。 Co-Authored-By: Claude Opus 4.6 --- frontend/src/store/runtimeStore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/store/runtimeStore.js b/frontend/src/store/runtimeStore.js index 5f864e8..0e58097 100644 --- a/frontend/src/store/runtimeStore.js +++ b/frontend/src/store/runtimeStore.js @@ -87,4 +87,8 @@ export const useRuntimeStore = create((set) => ({ isRuntimeConfigSaving: false, setRuntimeConfigFeedback: (runtimeConfigFeedback) => set({ runtimeConfigFeedback }), setIsRuntimeConfigSaving: (isRuntimeConfigSaving) => set({ isRuntimeConfigSaving }), + + // Last day history (for replay) + lastDayHistory: [], + setLastDayHistory: (lastDayHistory) => set({ lastDayHistory }), }));