This commit is contained in:
2024-10-08 00:41:40 +08:00
parent 9049141e3a
commit 8713e5018f
3 changed files with 4 additions and 2 deletions

View File

@@ -80,7 +80,8 @@ const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
return substring
})
const url = config.BASE + path
let url = config.BASE + path
url = url.replace(/^http:\/\//i, 'https://')
return options.query ? url + getQueryString(options.query) : url
}