docs: update LLM guides for completed architecture phase
Refresh the development guidance to point to layered src GUIDE files and document Phase 4 completion, including AppShell extraction and page driver/component adoption for non-maintenance pages.docs: update LLM guides for completed architecture phase Refresh the development guidance to point to layered src GUIDE files and document Phase 4 completion, including AppShell extraction and page driver/component adoption for non-maintenance pages.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Stores Guide
|
||||
|
||||
`stores` 使用 Pinia 管理跨頁共享狀態、快取與全域顯示狀態。單一頁面暫時 UI 狀態應留在 page driver、component 或 composable。
|
||||
|
||||
## 放進 Store 的情況
|
||||
|
||||
- auth/session
|
||||
- menu/favorites/breadcrumbs
|
||||
- snackbar/messages
|
||||
- 跨頁共享資料快取
|
||||
- 多個頁面都需要讀寫的 domain state
|
||||
|
||||
## 不放進 Store 的情況
|
||||
|
||||
- dialog visible
|
||||
- 單一頁搜尋條件
|
||||
- 單一頁分頁狀態
|
||||
- 單一表單 dirty / validation
|
||||
- 單一頁 loading/error
|
||||
|
||||
## 資料流
|
||||
|
||||
store 可以呼叫 service module。component 不應繞過 store/composable 直接處理 token、session 或 HTTP hooks。
|
||||
Reference in New Issue
Block a user