init
This commit is contained in:
9
.cursor/rules/vue-router-best-practices.mdc
Normal file
9
.cursor/rules/vue-router-best-practices.mdc
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Best practices for Vue Router 4 configuration and usage
|
||||
globs: src/router/*.ts
|
||||
alwaysApply: false
|
||||
---
|
||||
- Use named routes for better maintainability
|
||||
- Implement route-level code-splitting for performance
|
||||
- Use navigation guards for route protection and redirection
|
||||
- Leverage route meta fields for additional route information
|
||||
Reference in New Issue
Block a user