fix: 修复了一些东西,新增了方法
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {Base64} from "js-base64";
|
||||
import {checkDev} from "@/utils/utils";
|
||||
|
||||
|
||||
const arr = [
|
||||
@@ -18,13 +19,14 @@ const sensitiveData = [
|
||||
'idcard'
|
||||
]
|
||||
|
||||
const isDev = true;
|
||||
const isDev = checkDev('dev');
|
||||
|
||||
function request(url, params, method = 0) {
|
||||
let baseURL = isDev === true? 'http://127.0.0.1:18000/member': "https://app.xiaokang88.com/member"
|
||||
// let baseURL = "http://127.0.0.1:18000/member"
|
||||
if (url.split('/').indexOf('imApi') !== -1) {
|
||||
baseURL = "http://127.0.0.1:12080/api"
|
||||
let baseURL = isDev === true? 'http://127.0.0.1:12080/api': "https://app.xiaokang88.com/member"
|
||||
}
|
||||
if (url.split('/').indexOf('newApi') !== -1) {
|
||||
baseURL = isDev === true? 'https://shop.xiaokang88.com/member': "https://shop.xiaokang88.com/member"
|
||||
|
||||
Reference in New Issue
Block a user