kopia lustrzana https://codeberg.org/nmkj/audon
23 wiersze
414 B
Vue
23 wiersze
414 B
Vue
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
name: this.$route.name,
|
|
};
|
|
},
|
|
created() {
|
|
const type = this.$route.params.type;
|
|
if (!type) return;
|
|
|
|
if (type === "offline") {
|
|
alert(this.$t("errors.offline"));
|
|
this.$router.push({ name: "home" });
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<v-alert v-if="this.name === 'notfound'" type="error">Page not found</v-alert>
|
|
</template>
|