增强办公
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user