diff --git a/common/config.js b/common/config.js index 94d44c8..fc37899 100644 --- a/common/config.js +++ b/common/config.js @@ -1,7 +1,7 @@ module.exports = { //后端接口地址 // baseUrl: 'http://10.11.38.240:9001', //内网开发环境 - baseUrl: 'http://192.168.0.8:8001', //内网开发环境 + baseUrl: '/api', //内网开发环境 // baseUrl: 'http://hqpnzc.natappfree.cc', //内网穿透开发环境 // baseUrl: 'http://172.17.56.37:18082/api', //测试环境 // baseUrl: 'http://172.17.56.16:18082/api', //ip正式环境 diff --git a/manifest.json b/manifest.json index 723d410..3dde25e 100644 --- a/manifest.json +++ b/manifest.json @@ -41,9 +41,13 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs" : { + "ad" : {} + } } }, /* 快应用特有相关 */ @@ -75,6 +79,18 @@ "base" : "./" }, "devServer" : { + "port" : 8001, + "disableHostCheck" : true, + "proxy" : { + "/api" : { + "target" : "http://dz64qt.natappfree.cc", + "changeOrigin" : true, + "secure" : true, + "pathRewrite" : { + "^/api" : "" + } + } + }, "https" : false } } diff --git a/vue.config.js b/vue.config.js index 8a1ec01..38069df 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,27 +1,16 @@ // module.exports = { -// // 配置路径别名 -// configureWebpack: { -// devServer: { -// // 调试时允许内网穿透,让外网的人访问到本地调试的H5页面 -// disableHostCheck: true, -// // /本地调试时打开 -// port: '18082', //代理端口,不固定8222,可以是其他的 -// open: false, //项目启动时是否自动打开浏览器 -// proxy: { -// '/api': { -// target: 'http://172.17.56.37/api', //测试接口地址 -// // target: 'http://172.17.56.16/api', //正式接口地址 -// // ws:true, //允许ws跨域 -// secure:true, //类型:https=false http=true -// changeOrigin: true, //是否跨域 -// pathRewrite:{ // 重写路径 -// '^/api':'' -// } -// } -// }, - -// // /本地调试时打开 -// } -// }, -// productionSourceMap: false, +// publicPath: './h5', +// devServer: { +// port:"8001", +// proxy: { +// '/api': { +// target: 'http://dz64qt.natappfree.cc', +// ws: true, +// changeOrigin: true, +// pathRewrite: { +// "^/api": "" +// } +// } +// } +// }, // } -- libgit2 0.21.2