uniapp - 设置代理
HbuilderX 找到 manifest.json 文件,点击源码视图
"h5" : {
"title" : "案件要素确认系统",
"router" : {
"mode" : "hash",
"base" : "./"
},
"devServer" : {
"port" : 8092,
"proxy" : {
"/api" : {
"target" : "http://192.168.1.177:10903/api",
"pathRewrite" : {
"/api" : ""
},
"changeOrigin" : true
}
}
}
}