WIP: 670完成部分,版本合并 #7

Closed
liubiao wants to merge 36 commits from liubiao/APP:main into main
328 changed files with 20777 additions and 29965 deletions
Showing only changes of commit 96acaa5d94 - Show all commits

View File

@ -5,7 +5,13 @@ const request = (options) => {
console.log("options"+JSON.stringify(options),BASE.BASE_URL) console.log("options"+JSON.stringify(options),BASE.BASE_URL)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// 处理GET请求参数 // 处理GET请求参数
let url = BASE.BASE_URL + options.url; let url =options.url;
if(url.indexOf('http://')===0 || url.indexOf('https://')===0){
url=url;
}else{
url=BASE.BASE_URL + url;
}
console.log("url"+url) console.log("url"+url)
if (options.method === 'GET' && options.data) { if (options.method === 'GET' && options.data) {
// 使用qs序列化参数 // 使用qs序列化参数