This commit is contained in:
2018-11-16 19:16:52 +00:00
parent 83a5922471
commit 9de7376499
3 changed files with 7 additions and 4 deletions

View File

@@ -66,8 +66,11 @@ export default {
window.location.hostname == "localhost" && window.location.hostname == "localhost" &&
window.location.port == "8080" window.location.port == "8080"
) { ) {
store.commit("logItem", "apiutil::APIUrl -> setting to dev. mode");
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/"); store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
store.commit(
"logItem",
"apiutil::APIUrl -> setting to dev. mode: " + store.state.apiUrl
);
} else { } else {
//production location <protocol>//<hostname>:<port>/ //production location <protocol>//<hostname>:<port>/
store.commit( store.commit(

View File

@@ -3,7 +3,7 @@ import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate"; import createPersistedState from "vuex-persistedstate";
import _ from "./utils/libs/lodash.js"; import _ from "./utils/libs/lodash.js";
const MaxLogLength = 3; const MaxLogLength = 100;
Vue.use(Vuex); Vue.use(Vuex);

View File

@@ -1,8 +1,8 @@
/* xeslint-disable */ /* xeslint-disable */
//import store from "../store"; import store from "../store";
function dealWithError(msg) { function dealWithError(msg) {
alert(msg); store.commit("logItem", msg);
} }
export default { export default {
handleGeneralError(message, source, lineno, colno, error) { handleGeneralError(message, source, lineno, colno, error) {