This commit is contained in:
2019-12-18 23:00:23 +00:00
parent 8399038370
commit 2858b3d947

View File

@@ -5,7 +5,7 @@
<div class="text-center"> <div class="text-center">
<v-icon color="red" size="100">fa-dragon</v-icon> <v-icon color="red" size="100">fa-dragon</v-icon>
<div class="headline"> <div class="headline">
{{ "404 - " + window.$gz.locale.get("ErrorAPI2010") }} {{ msg }}
</div> </div>
</div> </div>
</v-col> </v-col>
@@ -14,14 +14,28 @@
</template> </template>
<script> <script>
var badPath = "UNKNOWN";
export default { export default {
data() {
return {
msg: "404 - NOT FOUND"
};
},
beforeCreate() { beforeCreate() {
debugger; //If this happens too early then it might not have all the setup stuf available
window.$gz.eventBus.$emit("menu-change", { if (!window || !window.$gz || !window.$gz.eventBus || !window.$gz.locale) {
isMain: true, this.msg = '404 - "' + badPath + '" NOT FOUND';
icon: "fa-dragon", } else {
title: "404 - " + window.$gz.locale.get("ErrorAPI2010") window.$gz.eventBus.$emit("menu-change", {
}); isMain: true,
icon: "fa-dragon",
title: '404 - "' + badPath + '"' + window.$gz.locale.get("ErrorAPI2010")
});
}
},
beforeRouteEnter(to, from, next) {
badPath = to.path;
next();
} }
}; };
</script> </script>