Files
DevFlow/docs/04-功能迭代/DEVFLOW-3.Store对接实施-2026-06-12.md
T

40 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DEVFLOW-3 Store 对接实施
> 创建: 2026-06-10 | 状态: ✅ 已完成(核对 2026-06-15
>
> **完成简述**: Pinia 风格 Store 全量对接落地,src/stores/ 下实际 4 个顶层 storeproject / ai / knowledge / appSettings),其中 project 已进一步按领域拆为 4 个子 storeprojects / tasks / ideas / workflow,见 src/stores/project/)。所有 store 通过 Tauri IPCinvoke / listen)连接后端,含 async actions、加载/错误状态、数据变更联动刷新(AR-11 df-data-changed 监听)。视图侧 Projects / Tasks / Ideas / Knowledge / Dashboard / ProjectDetail / Settings / AiDetached 等均已接入对应 store。下方原文为目标清单与实施框架,保留不删。
> 历史: 2026-06-10 待实施
---
## 概述
将 Vue 前端的硬编码数据替换为 Pinia Store,通过 Tauri IPC 连接真实后端数据。依赖 DEVFLOW-2 (IPC 桥接) 完成。
## 目标
- [x] Store 添加 async actions (调用 invoke)
- [x] ProjectsView 接入 projectStore
- [x] TasksView 接入 taskStore
- [x] WorkflowView 接入 workflowStore
- [x] IdeasView 接入 ideaStore (如有)
- [x] 加载状态 / 错误状态 UI 处理
- [x] 按钮事件绑定真实操作
## 实施记录
*(待填写)*
## 变更文件
*(待填写)*
## 遗留问题
*(待填写)*
## 下一步
*(待填写)*