fix remote customApiUrl
This commit is contained in:
parent
6c7b40a9c1
commit
5c8a637cf5
@ -322,7 +322,7 @@ export async function getReqUrl(port: number, path: string, isCore: boolean = fa
|
|||||||
headers: { [key: string]: string }
|
headers: { [key: string]: string }
|
||||||
}> {
|
}> {
|
||||||
const realUrl = getServerRoot(port, isCore) + path;
|
const realUrl = getServerRoot(port, isCore) + path;
|
||||||
if (commonStore.platform === 'web')
|
if (commonStore.platform === 'web' || realUrl.startsWith('https'))
|
||||||
return {
|
return {
|
||||||
url: realUrl,
|
url: realUrl,
|
||||||
headers: {}
|
headers: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user