Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage into develop

This commit is contained in:
zhangyc
2022-12-20 08:36:16 +08:00

View File

@@ -3,6 +3,7 @@ import { getCookie } from "@/api/method";
import JSONBigInt from 'json-bigint'; import JSONBigInt from 'json-bigint';
const JSONBigIntStr = JSONBigInt({storeAsString: true}); const JSONBigIntStr = JSONBigInt({storeAsString: true});
export function useBoeApiPage(_url, params = {}, config = { export function useBoeApiPage(_url, params = {}, config = {
init: true, init: true,
result: res => res.result, result: res => res.result,
@@ -138,7 +139,7 @@ export async function request(_url, params) {
} }
} }
const body = method !== 'get' ? params || {} : {} const body = method !== 'get' ? params || {} : {}
url = process.env.VUE_APP_BOE_API_URL + url url = process.env.NODE_ENV === 'development' ? url : process.env.VUE_APP_BOE_API_URL + url
return fetch(url, { return fetch(url, {
method, method,
headers: { headers: {