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