修改安卓蓝牙未开启定位服务的问题
This commit is contained in:
@ -5,7 +5,16 @@ const request = (options) => {
|
||||
console.log("options" + JSON.stringify(options), BASE.BASE_URL)
|
||||
return new Promise((resolve, reject) => {
|
||||
// 处理GET请求参数
|
||||
let url = BASE.BASE_URL + options.url;
|
||||
let url ="";
|
||||
if(options.url.indexOf('http://')===0 || options.url.indexOf('https://')===0){
|
||||
url=options.url;
|
||||
if(options.url.indexOf(BASE.BASE_UR)===-1){
|
||||
options.isAuthen=false;
|
||||
}
|
||||
}else{
|
||||
url=BASE.BASE_URL + options.url;
|
||||
}
|
||||
|
||||
console.log("url" + url)
|
||||
if (options.method === 'GET' && options.data) {
|
||||
// 使用qs序列化参数
|
||||
|
||||
Reference in New Issue
Block a user