guzhi/web/build/constant.js
邹方成 b023fafebd refactor: 移除未使用的图片资源并更新环境配置
feat: 恢复用户菜单和API权限获取功能
fix: 修正登录页面样式和功能
refactor: 清理API模块中未使用的接口
style: 更新加载动画显示标题
chore: 移除未使用的依赖项
2025-11-06 15:18:08 +08:00

24 lines
626 B
JavaScript

export const OUTPUT_DIR = 'dist'
export const PROXY_CONFIG = {
// /**
// * @desc 替换匹配值
// * @请求路径 http://localhost:3100/api/user
// * @转发路径 http://localhost:9999/api/v1 +/user
// */
// '/api': {
// target: 'http://localhost:9999/api/v1',
// changeOrigin: true,
// rewrite: (path) => path.replace(new RegExp('^/api'), ''),
// },
/**
* @desc 不替换匹配值
* @请求路径 http://localhost:3100/api/v1/user
* @转发路径 http://localhost:9999/api/v1/user
*/
'/api/v1': {
target: 'http://127.0.0.1:9999',
changeOrigin: true,
},
}