This commit is contained in:
2019-02-28 18:27:49 +00:00
parent cdfbd1ae91
commit 422e37aa90

View File

@@ -1,5 +1,7 @@
/* eslint-disable */
/* Xeslint-disable */
import store from "../store";
import router from "../router";
import auth from "./auth";
var stringifyPrimitive = function(v) {
switch (typeof v) {
@@ -107,7 +109,8 @@ export default {
//construct the api url and store it
//development location?
if (
(window.location.hostname == "localhost" || window.location.hostname == "192.168.1.56" ) &&
(window.location.hostname == "localhost" ||
window.location.hostname == "192.168.1.56") &&
window.location.port == "8080"
) {
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
@@ -187,6 +190,8 @@ export default {
store.commit("logItem", errorMessage);
alert("Error: " + errorMessage);
reject(error);
auth.logout();
router.push("/login");
});
});
}