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:
parent
a2827e4c0d
commit
a3d0e863cc
@ -64,6 +64,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
target: VITE_PROXY_TARGET,
|
target: VITE_PROXY_TARGET,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(new RegExp('^/api'), ''),
|
rewrite: (path) => path.replace(new RegExp('^/api'), ''),
|
||||||
|
secure: false,
|
||||||
configure: (proxy, options) => {
|
configure: (proxy, options) => {
|
||||||
// 配置此项可在响应头中看到请求的真实地址
|
// 配置此项可在响应头中看到请求的真实地址
|
||||||
proxy.on('proxyRes', (proxyRes, req) => {
|
proxy.on('proxyRes', (proxyRes, req) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user