refactor(GOV-010): 统一封装前端 Axios 请求

This commit is contained in:
2026-08-13 23:02:36 +08:00
parent 3a22fdeef3
commit 4105336cb2
10 changed files with 288 additions and 86 deletions
+5
View File
@@ -27,6 +27,11 @@ const publicEnv = readDevelopmentPublicEnv();
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(webDirectory, 'src'),
},
},
define: Object.fromEntries(
Object.entries(publicEnv).map(([key, value]) => [
`import.meta.env.${key}`,