refactor: vite.config.ts 类型修复与 Vite 8 迁移适配

- 修复 vite.config.ts 中 command 隐式 any 类型错误
- 修复 proxy 中 path 参数隐式 any 类型错误
- 将无效的 oxc.drop 配置迁移为 Vite 8 原生方式(build.rolldownOptions.output.minify.compress)
- 引入 defineConfig + ConfigEnv 提供完整类型推导
- JS 文件迁移为 TypeScript(user.ts, routerGuard.ts 等)
- 更新 API 层类型定义
This commit is contained in:
2026-08-12 14:13:45 +08:00
parent 35e98b9ab1
commit fd753291fe
20 changed files with 596 additions and 660 deletions

View File

@@ -1,6 +1,6 @@
import router from './index'
import { getToken } from '@/utils/auth'
import { useUserStore } from '@/store/modules/user.js'
import { useUserStore } from '@/store/modules/user'
const whiteList = ['/login'] // no redirect whitelist