feat:修改部分协议接口自动获取(http/https)

This commit is contained in:
wyx
2023-02-03 16:30:39 +08:00
parent 0278434141
commit 531a9d37cb
10 changed files with 28 additions and 28 deletions

View File

@@ -197,7 +197,7 @@ export async function boeRequest(_url, params) {
}
}
const body = method !== 'get' ? params || {} : {}
url = process.env.NODE_ENV === 'development' ? url : process.env.VUE_APP_BOE_API_URL + url
url = process.env.NODE_ENV === 'development' ? url : window.location.protocol + process.env.VUE_APP_BOE_API_URL + url
return fetch(url, {
method,
headers: {