微信 小程序
This commit is contained in:
@@ -48,11 +48,17 @@
|
||||
"h5" : {
|
||||
"devServer" : {
|
||||
"port" : 8080,
|
||||
"https" : false,
|
||||
"disableHostCheck" : true,
|
||||
"proxy" : {
|
||||
"^/api" : {
|
||||
"target" : "https://api.huayang-star.com",
|
||||
// 注意:此代理target需要与 common/env.js 中的 apiEnv 配置保持一致
|
||||
// 如果 apiEnv 为 'local',target 应为 "http://localhost:8090"
|
||||
// 如果 apiEnv 为 'prod',target 应为 "https://api.huayang-star.com"
|
||||
"target" : "http://localhost:8090",
|
||||
"changeOrigin" : true,
|
||||
"secure" : true
|
||||
"secure" : false,
|
||||
"ws" : false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user