1.0.3版本

This commit is contained in:
WindowBird 2025-11-19 17:45:00 +08:00
parent d2f989b9c1
commit ba9d4198ba
2 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,7 @@
"name" : "OfficeSystem",
"appid" : "__UNI__53A0BE0",
"description" : "",
"versionName" : "1.0.2",
"versionName" : "1.0.3",
"versionCode" : "100",
"transformPx" : false,
/* 5+App */

View File

@ -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) {