fix: swagger bug in dev mode (#291)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-09-12 12:09:44 +08:00
committed by GitHub
parent c70c62f52e
commit 52d9017611
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export function initServerUrl() {
}
}
function isLocalhost() {
export function isLocalhost() {
const hostname = window.location.hostname;
return hostname === "localhost";
}