feat: add dayjs, axios, and environment variable configuration

- Add dayjs with duration plugin pre-configured
- Add axios instance with auth token injection and 401 redirect
- Add VITE_API_BASE_URL, VITE_APP_TITLE, and VITE_ENABLE_MOCK env declarations
- Add .env.example with documented variables
This commit is contained in:
2026-06-18 16:44:29 +08:00
parent 0b1c394cfd
commit 0da17ab0d7
7 changed files with 290 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
# API base URL for axios requests
VITE_API_BASE_URL=/api
# Application title used in the document head
VITE_APP_TITLE=Vue SPA Template