mxivideo/src
root a56400b4d2 fix: 修复 AIVideoGenerator 组件中的 Store Hooks 使用错误
🔧 **Store Hooks 修复**:

1. **问题识别**:
   - useAIVideoJobs, useAIVideoProcessing, useAIVideoSettings 使用方式错误
   - 缺少 useAIVideoStore 主 store 的导入
   - 函数名不匹配:generateBatchVideos vs batchGenerateVideos

2. **修复内容**:
   - 添加 useAIVideoStore 导入
   - 正确使用 selector hooks:
     * useAIVideoJobs() → 返回 jobs 数组
     * useAIVideoProcessing() → 返回 isProcessing 布尔值
     * useAIVideoSettings() → 返回设置对象
   - 通过主 store 获取 actions:
     * generateSingleVideo
     * batchGenerateVideos
     * clearCompletedJobs

3. **Store 架构理解**:
   - **Selector Hooks**: 用于获取特定状态片段
   - **Main Store**: 用于获取 actions 和复杂操作
   - **类型安全**: 所有 hooks 都有正确的 TypeScript 类型

4. **函数调用修复**:
   - generateBatchVideos → batchGenerateVideos
   - 保持与 store 定义的一致性

 **修复效果**:
- 编译错误消除 ✓
- Store 状态正确访问 ✓
- Actions 函数正常调用 ✓
- TypeScript 类型检查通过 ✓

现在组件可以正确使用 Zustand store 进行状态管理!
2025-07-10 14:12:23 +08:00
..
components fix: 修复 AIVideoGenerator 组件中的 Store Hooks 使用错误 2025-07-10 14:12:23 +08:00
hooks fix: 优化事件循环处理,解决 tao 警告 2025-07-10 10:58:55 +08:00
pages fix: 按 Tauri 最佳实践重构 Python 进程通信 2025-07-10 12:51:30 +08:00
services fix: 修复前端批量处理服务的 JSON-RPC 解析问题 2025-07-10 13:20:54 +08:00
stores feat: 完成所有任务 - 批量重复修复、UI改进、代码重构 2025-07-10 13:45:56 +08:00
App.tsx feat: 集成 AI 视频生成功能到 MixVideo V2 2025-07-10 10:43:40 +08:00
index.css first commit 2025-07-10 09:41:40 +08:00
main.tsx first commit 2025-07-10 09:41:40 +08:00