This commit is contained in:
xiaozhiyong
2026-06-16 11:31:26 +08:00
parent 17d1b6663e
commit 82c1cce942
22 changed files with 2711 additions and 59 deletions

View File

@@ -85,6 +85,8 @@ export default ({ mode }) => {
// 需要代理的路径 例如 '/api'
target: `${process.env.VITE_BASE_PATH}/`, // 代理到 目标路径
changeOrigin: true,
timeout: 0,
proxyTimeout: 0,
rewrite: (path) => path.replace(new RegExp('^' + process.env.VITE_BASE_API), '')
}
}