This commit is contained in:
2018-11-15 00:52:43 +00:00
parent 84e776f66e
commit 5b680221a7
5 changed files with 14 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
/* xeslint-disable */
/* Xeslint-disable */
import logger from "../utils/logit";
import store from "../store";
@@ -56,20 +56,20 @@ export default {
//construct the api url and store it
//development location?
if (
window.location.host == "localhost" &&
window.location.hostname == "localhost" &&
window.location.port == "8080"
) {
logger.log("apiutil::APIUrl -> APIURL empty setting to dev. mode");
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
} else {
//production location <protocol>//<hostname>:<port>/
store.commit(
"setAPIURL",
window.location.protocol +
"//" +
window.location.hostname +
":" +
window.location.port +
"/api/v8.0/"
window.location.protocol + "//" + window.location.host + "/api/v8.0/"
);
logger.log(
"apiutil::APIUrl -> APIURL empty using: ",
store.state.apiUrl
);
}
}