1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-04-30 22:29:01 +08:00

fix: 修复本地代理apiFox云端mock接口不通问题

This commit is contained in:
zclzone 2024-01-30 22:51:50 +08:00
parent a2827e4c0d
commit a3d0e863cc

View File

@ -64,6 +64,7 @@ export default defineConfig(({ command, mode }) => {
target: VITE_PROXY_TARGET,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp('^/api'), ''),
secure: false,
configure: (proxy, options) => {
// 配置此项可在响应头中看到请求的真实地址
proxy.on('proxyRes', (proxyRes, req) => {