fix: 修复前端 TypeScript 编译错误

- 移除 App.tsx 中未使用的 activeScenario 变量
- 修复 ChatPanel 中 ReactNode 的 type-only import
- 移除 ChatPanel 中未使用的 onSelectScenario 参数

修复 CI 构建失败问题
This commit is contained in:
hhs
2026-06-22 00:28:59 +08:00
parent c58c6b59a5
commit 1b99d24fc1
2 changed files with 1 additions and 5 deletions

View File

@@ -240,9 +240,6 @@ function AppContent() {
}]);
}, [updateConfig, setMessages, tr]);
// 当前情景对象
const activeScenario = allScenarios.find((s) => s.id === (config.scenario || "free_chat")) || allScenarios[0];
// ---- 键盘快捷键 ----
useEffect(() => {
const handler = (e: KeyboardEvent) => {