This commit is contained in:
2019-12-18 23:22:31 +00:00
parent 7eb8bf8cd6
commit f33aa0bce8

View File

@@ -23,12 +23,16 @@ export default {
created() { created() {
// debugger; // debugger;
var badPath = this.$router.history.current.path; var badPath = this.$router.history.current.path;
//If this happens too early then it might not have all the setup stuf available //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) { if (
//debugger; !window ||
!window.$gz ||
!window.$gz.eventBus ||
!window.$gz.locale ||
!window.$gz.store
) {
this.msg = '404 - NOT FOUND: "' + badPath + '"'; this.msg = '404 - NOT FOUND: "' + badPath + '"';
} else { } else {
//debugger;
var notFoundLocalized = window.$gz.locale.get("ErrorAPI2010"); var notFoundLocalized = window.$gz.locale.get("ErrorAPI2010");
//format the message //format the message
this.msg = "404 - " + notFoundLocalized + ': "' + badPath + '"'; this.msg = "404 - " + notFoundLocalized + ': "' + badPath + '"';
@@ -42,11 +46,5 @@ export default {
}); });
} }
} }
// ,
// beforeRouteEnter(to, from, next) {
// //debugger;
// badPath = to.path;
// next();
// }
}; };
</script> </script>