蝴蝶项管
产品
(current)
时间轴
(current)
代码生成器
(current)
博客
(current)
注册/登录
(current)
electron-vue 代理配置
发布时间:2023-10-18 15:34:20
添加的代码如下
proxy
:
{
'/xx'
:
{
// 请求的目标服务器地址
target
:
'https://hudiepm.com/'
,
// 设置允许跨域
changeOrigin
:
true
,
// 重写路径
pathRewrite
:
{
'^/xx'
:
'/xx'
},
headers
:
{
referer
:
''
}
}
},
添加位置
84行需要打开注释
APP STORE
应用宝
小米
华为
Copyright©2017-2024 All Rights Reserved.
湘ICP备20003243号