init
This commit is contained in:
8
.cursor/rules/axios-best-practices.mdc
Normal file
8
.cursor/rules/axios-best-practices.mdc
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Best practices for Axios HTTP requests
|
||||
globs: *.ts,*.vue
|
||||
alwaysApply: false
|
||||
---
|
||||
- Refer to `src/api/admin/audit.ts` as a template to make an API call with the same effect
|
||||
- The API method must be called using the synchronous syntax await, and then the result is deconstructed
|
||||
- All axios call logic needs to be placed in `src/api`
|
||||
Reference in New Issue
Block a user