From 32827889a9f807fb66dfecd95fe99f594600f997 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 5 Jul 2021 16:42:37 +0200 Subject: [PATCH] redirect to presentation if never visited --- src/App.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App.vue b/src/App.vue index 8df30b8..32eb7aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,6 +23,12 @@ export default { NodesHistory }, + created () { + if (!this.$store.state.pages.visited) { + this.$router.push({ name: 'introduction' }) + } + }, + metaInfo () { return { // if no subcomponents specify a metaInfo.title, try to get one from the route name.