Files
school-developer/.cursor/rules/vue-best-practices.mdc
吴红兵 1f645dad3e init
2025-12-02 10:37:49 +08:00

11 lines
480 B
Plaintext

---
description: Best practices for Vue 3 applications
globs: *.vue
alwaysApply: false
---
- Use Vue3 Composition API for better code organization and reusability
- Components should be automatically split into multiple small components that are easy to maintain
- parseTime/parseDate/baseURL are global properties and can be used directly
- Leverage Vue's built-in directives like `v-model` for form handling
- Implement proper error handling with `try/catch` in component setup