diff --git a/manifest.json b/manifest.json index a4eaa23..a3a0e6e 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "OfficeSystem", "appid" : "__UNI__53A0BE0", "description" : "", - "versionName" : "1.0.2", + "versionName" : "1.0.3", "versionCode" : "100", "transformPx" : false, /* 5+App特有相关 */ diff --git a/utils/request/index.js b/utils/request/index.js index f97b9cc..329e31f 100644 --- a/utils/request/index.js +++ b/utils/request/index.js @@ -11,7 +11,7 @@ export const Request = () => { uni.$uv.http.setConfig((config) => { /* config 为默认全局配置*/ config.baseURL = 'http://192.168.1.4:4001'; /* 根域名 */ - // config.baseURL = 'https://pm.ccttiot.com/prod-api'; /* 根域名 */ + config.baseURL = 'https://pm.ccttiot.com/prod-api'; /* 根域名 */ return config }) @@ -89,8 +89,6 @@ export const Request = () => { } } - - if (data.code !== 200) { // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示 if (custom?.toast !== false) { @@ -105,7 +103,6 @@ export const Request = () => { return new Promise(() => { }) } } - // 如果响应数据有 data 字段,返回 data 字段的值 // 如果没有 data 字段,返回去除 code 和 msg 后的数据对象 if (data.data !== undefined) {