增强办公

This commit is contained in:
2026-04-17 12:07:27 +08:00
parent ed75298558
commit e76028bf43
17 changed files with 1008 additions and 2309 deletions

View File

@@ -4,8 +4,8 @@ import { toast, tansParams } from './common'
import { getSMSCodeFromOa, loginOaByPhone } from '../api/oa/login'
let timeout = 10000
const baseUrl = 'http://49.232.154.205:18081'
//const baseUrl = 'http://192.168.31.116:8080'
//const baseUrl = 'http://49.232.154.205:18081'
export const BASE_URL = 'http://192.168.31.116:8080'
// 显示loading提示
const showLoading = (title = '正在登录OA系统...') => {
@@ -46,7 +46,7 @@ const request = config => {
uni.request({
method: config.method || 'get',
timeout: config.timeout || timeout,
url: config.baseUrl || baseUrl + config.url,
url: config.baseUrl || BASE_URL + config.url,
data: config.data,
header: config.header,
dataType: 'json'