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

9 lines
348 B
Plaintext

---
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`