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