更新API服务地址前缀为'/admin-go',统一后端服务配置,优化请求模块,调整个人信息页面上传接口,提升代码一致性和可读性。

This commit is contained in:
2026-04-02 14:14:26 +08:00
parent 89e0e55dd9
commit 08ae659a56
21 changed files with 1567 additions and 1598 deletions

View File

@@ -44,21 +44,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
port: env.VITE_PORT as unknown as number,
open: false,
hmr: true,
// proxy: {
// '/gitee': {
// target: 'https://gitee.com',
// ws: true,
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/gitee/, ''),
// },
// },
proxy: {
'/api': {
target: 'http://localhost:8808',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/api'),
},
},
// 无代理模式:前端直连后端,由后端处理 CORS
},
build: {
outDir: 'dist',