Commit e229e8485e1989419662e00117c2addd7f6efd5d
1 parent
b3b07ef3
Exists in
charge
feat:proxy
Showing
3 changed files
with
33 additions
and
28 deletions
Show diff stats
common/config.js
1 | module.exports = { | 1 | module.exports = { |
2 | //后端接口地址 | 2 | //后端接口地址 |
3 | // baseUrl: 'http://10.11.38.240:9001', //内网开发环境 | 3 | // baseUrl: 'http://10.11.38.240:9001', //内网开发环境 |
4 | - baseUrl: 'http://192.168.0.8:8001', //内网开发环境 | 4 | + baseUrl: '/api', //内网开发环境 |
5 | // baseUrl: 'http://hqpnzc.natappfree.cc', //内网穿透开发环境 | 5 | // baseUrl: 'http://hqpnzc.natappfree.cc', //内网穿透开发环境 |
6 | // baseUrl: 'http://172.17.56.37:18082/api', //测试环境 | 6 | // baseUrl: 'http://172.17.56.37:18082/api', //测试环境 |
7 | // baseUrl: 'http://172.17.56.16:18082/api', //ip正式环境 | 7 | // baseUrl: 'http://172.17.56.16:18082/api', //ip正式环境 |
manifest.json
@@ -41,9 +41,13 @@ | @@ -41,9 +41,13 @@ | ||
41 | ] | 41 | ] |
42 | }, | 42 | }, |
43 | /* ios打包配置 */ | 43 | /* ios打包配置 */ |
44 | - "ios" : {}, | 44 | + "ios" : { |
45 | + "dSYMs" : false | ||
46 | + }, | ||
45 | /* SDK配置 */ | 47 | /* SDK配置 */ |
46 | - "sdkConfigs" : {} | 48 | + "sdkConfigs" : { |
49 | + "ad" : {} | ||
50 | + } | ||
47 | } | 51 | } |
48 | }, | 52 | }, |
49 | /* 快应用特有相关 */ | 53 | /* 快应用特有相关 */ |
@@ -75,6 +79,18 @@ | @@ -75,6 +79,18 @@ | ||
75 | "base" : "./" | 79 | "base" : "./" |
76 | }, | 80 | }, |
77 | "devServer" : { | 81 | "devServer" : { |
82 | + "port" : 8001, | ||
83 | + "disableHostCheck" : true, | ||
84 | + "proxy" : { | ||
85 | + "/api" : { | ||
86 | + "target" : "http://dz64qt.natappfree.cc", | ||
87 | + "changeOrigin" : true, | ||
88 | + "secure" : true, | ||
89 | + "pathRewrite" : { | ||
90 | + "^/api" : "" | ||
91 | + } | ||
92 | + } | ||
93 | + }, | ||
78 | "https" : false | 94 | "https" : false |
79 | } | 95 | } |
80 | } | 96 | } |
vue.config.js
1 | // module.exports = { | 1 | // module.exports = { |
2 | -// // 配置路径别名 | ||
3 | -// configureWebpack: { | ||
4 | -// devServer: { | ||
5 | -// // 调试时允许内网穿透,让外网的人访问到本地调试的H5页面 | ||
6 | -// disableHostCheck: true, | ||
7 | -// // /本地调试时打开 | ||
8 | -// port: '18082', //代理端口,不固定8222,可以是其他的 | ||
9 | -// open: false, //项目启动时是否自动打开浏览器 | ||
10 | -// proxy: { | ||
11 | -// '/api': { | ||
12 | -// target: 'http://172.17.56.37/api', //测试接口地址 | ||
13 | -// // target: 'http://172.17.56.16/api', //正式接口地址 | ||
14 | -// // ws:true, //允许ws跨域 | ||
15 | -// secure:true, //类型:https=false http=true | ||
16 | -// changeOrigin: true, //是否跨域 | ||
17 | -// pathRewrite:{ // 重写路径 | ||
18 | -// '^/api':'' | ||
19 | -// } | ||
20 | -// } | ||
21 | -// }, | ||
22 | - | ||
23 | -// // /本地调试时打开 | ||
24 | -// } | ||
25 | -// }, | ||
26 | -// productionSourceMap: false, | 2 | +// publicPath: './h5', |
3 | +// devServer: { | ||
4 | +// port:"8001", | ||
5 | +// proxy: { | ||
6 | +// '/api': { | ||
7 | +// target: 'http://dz64qt.natappfree.cc', | ||
8 | +// ws: true, | ||
9 | +// changeOrigin: true, | ||
10 | +// pathRewrite: { | ||
11 | +// "^/api": "" | ||
12 | +// } | ||
13 | +// } | ||
14 | +// } | ||
15 | +// }, | ||
27 | // } | 16 | // } |