From f33aa0bce8fd2774c35c605e6950585c6e4fc5cc Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 18 Dec 2019 23:22:31 +0000 Subject: [PATCH] --- ayanova/src/views/notfound.vue | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/ayanova/src/views/notfound.vue b/ayanova/src/views/notfound.vue index 7974c3a7..497a5224 100644 --- a/ayanova/src/views/notfound.vue +++ b/ayanova/src/views/notfound.vue @@ -23,12 +23,16 @@ export default { created() { // debugger; var badPath = this.$router.history.current.path; - //If this happens too early then it might not have all the setup stuf available - if (!window || !window.$gz || !window.$gz.eventBus || !window.$gz.locale) { - //debugger; + //If this happens too early then it might not have all the setup stuf available which would trigger an infinite loop + if ( + !window || + !window.$gz || + !window.$gz.eventBus || + !window.$gz.locale || + !window.$gz.store + ) { this.msg = '404 - NOT FOUND: "' + badPath + '"'; } else { - //debugger; var notFoundLocalized = window.$gz.locale.get("ErrorAPI2010"); //format the message this.msg = "404 - " + notFoundLocalized + ': "' + badPath + '"'; @@ -42,11 +46,5 @@ export default { }); } } - // , - // beforeRouteEnter(to, from, next) { - // //debugger; - // badPath = to.path; - // next(); - // } };