<Projects/></template><script>// @ is an alias to /srcimportProjectsfrom"../components/Projects";import{mapGetters}from'vuex'exportdefault{name:'Home',components:{Projects},computed:{...mapGetters(['isAuthenticated'])},mounted(){if(!this.isAuthenticated){// login failed, show login pagethis.$router.push('/login')}}}</script>