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
Vendored
+4 -2
View File
@@ -1,10 +1,12 @@
/// <reference types="vite/client" />
import 'vue-router'
import "vue-router"
declare module 'vue-router' {
declare module "vue-router" {
interface RouteMeta {
requiresAuth?: boolean
guestOnly?: boolean
}
}