From f03e7742cb7d8ca55fbb51d6e173515b843bfd7f Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 20 Nov 2024 17:56:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E7=9C=9F=E6=9C=BA=E6=88=96=E6=A8=A1=E6=8B=9F=E5=99=A8=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 2 +- src/manifest.json | 77 ++++++++++++++++++++++-------------------- src/utils/http.js | 4 +-- 3 files changed, 43 insertions(+), 40 deletions(-) diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 0c2e437..9c80382 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -2,7 +2,7 @@ "version" : "1.0", "configurations" : [ { - "playground" : "standard", + "playground" : "custom", "type" : "uni-app:app-android" }, { diff --git a/src/manifest.json b/src/manifest.json index 2d72002..280d8a6 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,28 +1,31 @@ { - "name" : "material-app", - "appid" : "__UNI__9349CB7", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, + "name": "material-app", + "appid": "__UNI__9349CB7", + "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 + }, + "compatible": { + "ignoreVersion": true }, /* 模块配置 */ - "modules" : {}, + "modules": {}, /* 应用发布信息 */ - "distribute" : { + "distribute": { /* android打包配置 */ - "android" : { - "permissions" : [ + "android": { + "permissions": [ "", "", "", @@ -41,34 +44,34 @@ ] }, /* ios打包配置 */ - "ios" : { - "dSYMs" : false + "ios": { + "dSYMs": false }, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs": {} } }, /* 快应用特有相关 */ - "quickapp" : {}, + "quickapp": {}, /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "wx780dccf027dbd110", - "setting" : { - "urlCheck" : false + "mp-weixin": { + "appid": "wx780dccf027dbd110", + "setting": { + "urlCheck": 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" : "3" + "vueVersion": "3" } diff --git a/src/utils/http.js b/src/utils/http.js index 5fa1b78..506c90d 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -6,8 +6,8 @@ import { useMemberStore } from '@/stores' * baseURL 设置请求ip地址和端口 */ const ENV = process.env.NODE_ENV -// export const baseURL = ENV === 'development' ? 'http://192.168.2.246:18080' : '***' -export const baseURL = ENV === 'development' ? '/api' : '***' +export const baseURL = ENV === 'development' ? 'http://192.168.2.246:18080' : '***' +// export const baseURL = ENV === 'development' ? '/api' : '***' /** * httpInterceptor 分别拦截 request 和 uploadFile 请求 */