From 076038ea73e8263472fa83ef40a027d5216fb7ad Mon Sep 17 00:00:00 2001 From: ywk <317226901@qq.com> Date: Wed, 9 Apr 2025 16:45:58 +0800 Subject: [PATCH] =?UTF-8?q?chore(request):=20=E7=9B=B8=E5=AF=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E6=9B=BF=E6=8D=A2=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/request.js | 4 +- manifest.json | 98 +++++++++++++++++++++++++---------------------- vue.config.js | 2 +- 3 files changed, 55 insertions(+), 49 deletions(-) diff --git a/config/request.js b/config/request.js index 0bd8657..5fa9b1b 100644 --- a/config/request.js +++ b/config/request.js @@ -13,12 +13,12 @@ module.exports = (vm) => { //#ifdef DEV_SERVER console.log('DEV_SERVER') - config.baseURL = 'http://t-app.beida413.com/prod-api'; + config.baseURL = '/prod-api'; //#endif //#ifdef QA_SERVER console.log('QA_SERVER') - config.baseURL = 'http://t-app.beida413.com/prod-api'; + config.baseURL = '/prod-api'; //#endif config.timeout = 30000; return config diff --git a/manifest.json b/manifest.json index 7752793..a02d2d8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,28 +1,28 @@ { - "name" : "qyj_console", - "appid" : "__UNI__31B4587", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, + "name": "qyj_console", + "appid": "__UNI__31B4587", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 }, /* 模块配置 */ - "modules" : {}, + "modules": {}, /* 应用发布信息 */ - "distribute" : { + "distribute": { /* android打包配置 */ - "android" : { - "permissions" : [ + "android": { + "permissions": [ "", "", "", @@ -41,44 +41,50 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios": {}, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs": {} } }, /* 快应用特有相关 */ - "quickapp" : {}, + "quickapp": {}, /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wxe26d23c09932e93b", - "setting" : { - "urlCheck" : false, - "es6" : false, - "minified" : false + "mp-weixin": { + "appid": "wxe26d23c09932e93b", + "setting": { + "urlCheck": false, + "es6": false, + "minified": false }, - "usingComponents" : true + "usingComponents": true }, - "mp-alipay" : { - "usingComponents" : true + "mp-alipay": { + "usingComponents": true }, - "mp-baidu" : { - "usingComponents" : true + "mp-baidu": { + "usingComponents": true }, - "mp-toutiao" : { - "usingComponents" : true + "mp-toutiao": { + "usingComponents": true }, - "uniStatistics" : { - "enable" : false + "uniStatistics": { + "enable": false }, - "vueVersion" : "2", - "h5" : { - "template" : "index.html", - "router" : { - "mode" : "hash" + "vueVersion": "2", + "h5": { + "template": "index.html", + "router": { + "mode": "hash" }, - "devServer" : { - "https" : false + "devServer": { + "https": false, + "proxy": { + "/prod-api": { + "target": "http://t-app.beida413.com", + "changeOrigin": true + } + } } }, - "fallbackLocale" : "zh-Hans" -} + "fallbackLocale": "zh-Hans" +} \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 10e2271..14f70e3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,5 +15,5 @@ module.exports = { // 'ruRU':'ruRU', // 'frFR':'frFR', }, - } + }, } \ No newline at end of file