fix remote customApiUrl

This commit is contained in:
josc146 2024-05-02 14:48:16 +08:00
parent 6c7b40a9c1
commit 5c8a637cf5

View File

@ -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: {}