Explorar el Código

redirect to presentation if never visited

axolotle hace 3 años
padre
commit
32827889a9
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      src/App.vue

+ 6 - 0
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.