upload images

This commit is contained in:
2024-10-08 00:23:12 +08:00
parent 9214764484
commit 31ebaea838
13 changed files with 92 additions and 36 deletions

View File

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