manifest.json
找到h5
"h5" : {
"title" : "年货节-年终爆品盘点",
"router" : {
"mode" : "hash",
"base" : "./"
},
"devServer" : {
"port" : 8801,
"disableHostCheck" : true,
"proxy" : {
"/ksy" : {
"target" : "https://192.168.1.1:8801/zklystore",
"changeOrigin" : true,
"ws" : true,
"pathRewrite" : {
"^/ksy" : ""
}
}
}
}
}
uni.request({ url:"/ksy/activeapi/getAllproductinactive", method:"GET", success:res=>{ } })
原文:https://www.cnblogs.com/1748sb/p/14343096.html