12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- {
- "name" : "在线考试",
- "appid" : "__UNI__837F4E0",
- "description" : "",
- "versionName" : "1.0.0",
- "versionCode" : "100",
- "transformPx" : false,
- "app-plus" : {
- /* 5+App特有相关 */
- "usingComponents" : true,
- "nvueCompiler" : "uni-app",
- "splashscreen" : {
- "alwaysShowBeforeRender" : true,
- "waiting" : true,
- "autoclose" : true,
- "delay" : 0
- },
- "modules" : {},
- /* 模块配置 */
- "distribute" : {
- /* 应用发布信息 */
- "android" : {
- /* android打包配置 */
- "permissions" : [
- "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
- "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
- "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
- "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
- "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
- "<uses-permission android:name=\"android.permission.CAMERA\"/>",
- "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
- "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
- "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
- "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
- "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
- "<uses-feature android:name=\"android.hardware.camera\"/>",
- "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
- ]
- },
- "ios" : {},
- /* ios打包配置 */
- "sdkConfigs" : {}
- }
- },
- /* SDK配置 */
- "quickapp" : {},
- /* 快应用特有相关 */
- "mp-weixin" : {
- /* 小程序特有相关 */
- "appid" : "wx341170c5b688083b",
- "setting" : {
- "urlCheck" : false,
- "minified" : true,
- "postcss" : true,
- "es6" : true
- },
- "usingComponents" : true
- },
- "h5" : {
- "title" : "在线考试",
- "devServer" : {
- "port" : 8080,
- "disableHostCheck" : true,
- "proxy" : {
- "/prod-api" : {
- //"target" : "http://10.16.4.5:8080", //孙坤阳
- //"target" : "http://10.16.4.9:8080",//陈航
- "target" : "http://121.36.73.159:8055", //线上
- "changeOrigin" : true,
- "secure" : false,
- "pathRewrite" : {
- "^/prod-api" : "/"
- }
- }
- },
- "https" : false
- },
- "optimization" : {
- "treeShaking" : {
- "enable" : true
- }
- },
- "router" : {
- "mode" : "hash",
- "base" : "./"
- }
- }
- }
- // 生产后端路径
- //开启代理:在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
- //这里理解成用'/api'代替target里面的地址,比如我要调用'http://40.00.100.100:3002/user/add',直接写'/api/user/add'即可
|