更新API服务地址前缀为'/admin-go',统一后端服务配置,优化请求模块,调整个人信息页面上传接口,提升代码一致性和可读性。
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user