1.0.3版本
This commit is contained in:
parent
d2f989b9c1
commit
ba9d4198ba
|
|
@ -2,7 +2,7 @@
|
||||||
"name" : "OfficeSystem",
|
"name" : "OfficeSystem",
|
||||||
"appid" : "__UNI__53A0BE0",
|
"appid" : "__UNI__53A0BE0",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.2",
|
"versionName" : "1.0.3",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export const Request = () => {
|
||||||
uni.$uv.http.setConfig((config) => {
|
uni.$uv.http.setConfig((config) => {
|
||||||
/* config 为默认全局配置*/
|
/* config 为默认全局配置*/
|
||||||
config.baseURL = 'http://192.168.1.4:4001'; /* 根域名 */
|
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
|
return config
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -89,8 +89,6 @@ export const Request = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.code !== 200) {
|
if (data.code !== 200) {
|
||||||
// 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
|
// 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
|
||||||
if (custom?.toast !== false) {
|
if (custom?.toast !== false) {
|
||||||
|
|
@ -105,7 +103,6 @@ export const Request = () => {
|
||||||
return new Promise(() => { })
|
return new Promise(() => { })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果响应数据有 data 字段,返回 data 字段的值
|
// 如果响应数据有 data 字段,返回 data 字段的值
|
||||||
// 如果没有 data 字段,返回去除 code 和 msg 后的数据对象
|
// 如果没有 data 字段,返回去除 code 和 msg 后的数据对象
|
||||||
if (data.data !== undefined) {
|
if (data.data !== undefined) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user