diff --git a/UI/src/views/HistoryView.vue b/UI/src/views/HistoryView.vue index ec19ed3..b223167 100644 --- a/UI/src/views/HistoryView.vue +++ b/UI/src/views/HistoryView.vue @@ -1099,16 +1099,24 @@ const exportHistoryData = () => { }; const resizeCharts = () => { - if (fullscreenPredictionChart.value) fullscreenPredictionChart.value.resize(); - if (fullscreenHistoryChart.value) fullscreenHistoryChart.value.resize(); + if (predictionChart) { + predictionChart.resize(); + } + if (historyChart) { + historyChart.resize(); + } }; window.addEventListener('resize', resizeCharts); onUnmounted(() => { window.removeEventListener('resize', resizeCharts); - if (fullscreenPredictionChart.value) fullscreenPredictionChart.value.dispose(); - if (fullscreenHistoryChart.value) fullscreenHistoryChart.value.dispose(); + if (predictionChart) { + predictionChart.destroy(); + } + if (historyChart) { + historyChart.destroy(); + } }); onMounted(() => { diff --git a/lyf开发日志记录文档.md b/lyf开发日志记录文档.md index 7c804d2..6f1bafd 100644 --- a/lyf开发日志记录文档.md +++ b/lyf开发日志记录文档.md @@ -307,7 +307,7 @@ --- ## 2025-07-21:前后端联合调试与UI修复 -**开发者**: Roo +**开发者**: lyf ### 15:45 - 修复后端 `DataFrame` 序列化错误 - **问题现象**: 在清理了历史模型并重新进行预测后,前端出现 `Object of type DataFrame is not JSON serializable` 错误。 diff --git a/prediction_history.db b/prediction_history.db index 4b9b54e..e33ba52 100644 Binary files a/prediction_history.db and b/prediction_history.db differ