修改安卓蓝牙未开启定位服务的问题

This commit is contained in:
liub
2026-02-03 13:08:49 +08:00
parent fcea5b1dba
commit b1eab86ba6
5 changed files with 53 additions and 47 deletions

View File

@ -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序列化参数