Improve initServerUrl()
This commit is contained in:
parent
b27a9a925d
commit
28c24c51f7
|
@ -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`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue