vueuse-axios-conventions

Installation
SKILL.md

VueUse Axios Conventions (EMID Project)

This skill documents the standardized patterns for data fetching and state management using useAxios in the EMID frontend.

1. Centralized Error Handling

NEVER use manual try-catch blocks or ElMessage.error for API errors in components. The axiosInstance in src/utils/http.ts includes a global interceptor that:

  • Automatically formats error messages.
  • Displays them via ElMessage.error.
  • Logs details to the console for debugging.

Incorrect:

Installs
26
Repository
ztn9709/skills
First Seen
Feb 11, 2026