Commit 7ea74170 authored by isstuev's avatar isstuev

fix swagger url

parent 9b3f999b
......@@ -58,8 +58,8 @@ const SwaggerUI = () => {
if (!req.loadSpec) {
req.url = req.url.replace(DEFAULT_SERVER, appConfig.api.host);
const url = new URL(req.url);
url.protocol = 'https';
req.url = url;
url.protocol = 'https:';
req.url = url.toString();
}
return req;
}, []);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment