Improve initServerUrl()

This commit is contained in:
Yang Luo 2023-07-24 10:59:56 +08:00
parent b27a9a925d
commit 28c24c51f7
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export let CasdoorSdk;
export function initServerUrl() {
const hostname = window.location.hostname;
if (hostname === "localhost") {
if (hostname === "localhost" || hostname === "127.0.0.1") {
ServerUrl = `http://${hostname}:14000`;
}
}