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