This commit is contained in:
吴红兵
2025-12-02 10:37:49 +08:00
commit 1f645dad3e
1183 changed files with 147673 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
description: Best practices for state management with Pinia
globs: src/stores/*.ts
alwaysApply: false
---
- Use Pinia stores for global state management
- Implement getters for computed state
- Use actions for side effects and asynchronous operations
- Utilize `defineStore` with `id` for better store organization