uniapp设置代理
super
2023-04-10 12:53

manifest.json文件 源码视图配置:
"h5": {
"devServer": {
"proxy": {
"/api": {
"target": "你的API域名",
"pathRewrite": {
"^/api": ""
}
}
}
}
注意:修改完之后,需要重新运行才能看到效果
0 条讨论