mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage into develop
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user