From 9de7376499f8de1fba7d176206d476a932cf3232 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 16 Nov 2018 19:16:52 +0000 Subject: [PATCH] --- app/ayanova/src/api/apiutil.js | 5 ++++- app/ayanova/src/store.js | 2 +- app/ayanova/src/utils/errorhandler.js | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/ayanova/src/api/apiutil.js b/app/ayanova/src/api/apiutil.js index 3f1cd74c..123eea22 100644 --- a/app/ayanova/src/api/apiutil.js +++ b/app/ayanova/src/api/apiutil.js @@ -66,8 +66,11 @@ export default { window.location.hostname == "localhost" && window.location.port == "8080" ) { - store.commit("logItem", "apiutil::APIUrl -> setting to dev. mode"); store.commit("setAPIURL", "http://localhost:7575/api/v8.0/"); + store.commit( + "logItem", + "apiutil::APIUrl -> setting to dev. mode: " + store.state.apiUrl + ); } else { //production location //:/ store.commit( diff --git a/app/ayanova/src/store.js b/app/ayanova/src/store.js index 585ace04..1b52ee1a 100644 --- a/app/ayanova/src/store.js +++ b/app/ayanova/src/store.js @@ -3,7 +3,7 @@ import Vuex from "vuex"; import createPersistedState from "vuex-persistedstate"; import _ from "./utils/libs/lodash.js"; -const MaxLogLength = 3; +const MaxLogLength = 100; Vue.use(Vuex); diff --git a/app/ayanova/src/utils/errorhandler.js b/app/ayanova/src/utils/errorhandler.js index 34a449f6..ce3cbba9 100644 --- a/app/ayanova/src/utils/errorhandler.js +++ b/app/ayanova/src/utils/errorhandler.js @@ -1,8 +1,8 @@ /* xeslint-disable */ -//import store from "../store"; +import store from "../store"; function dealWithError(msg) { - alert(msg); + store.commit("logItem", msg); } export default { handleGeneralError(message, source, lineno, colno, error) {