feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run
Some checks are pending
Call HTTPS API / build (push) Waiting to run
This commit is contained in:
16
AI-Coding/05-Store.md
Normal file
16
AI-Coding/05-Store.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# 05. 状态管理(Pinia Store)
|
||||
|
||||
- `src/store/index.ts`:`createPinia()` 与 `app.use(pinia)`
|
||||
- i18n 语言读取:`src/i18n/index.ts` 通过 `useSettingsStore(pinia)` 获取语言
|
||||
|
||||
## AI 提取/迁移注意
|
||||
|
||||
- 迁移 `src/store/index.ts` 时,通常也需要迁移:
|
||||
- `src/store/modules/settings.ts`(见 `12-Settings-Store.md` / `openspec-lite/modules/store-settings.yaml`)
|
||||
- `src/store/modules` 下其它基础模块(见 `14-Store-Modules.md`)
|
||||
- 与其相关的类型(`types/`,即 `/#` 别名指向的目录)
|
||||
|
||||
## 验收点
|
||||
|
||||
- Store 能正常注入
|
||||
- 关键 store(如 settings)能在不报错情况下读取
|
||||
Reference in New Issue
Block a user