This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user