Blame view
src/router/index.js
1.31 KB
97338adf3
|
1 2 3 4 |
import Vue from 'vue' import Router from 'vue-router' import { authGuard } from "../auth/authGuard" import LandingPage from '@/components/LandingPage' |
97338adf3
|
5 |
import Profile from '@/components/Profile' |
640c12320
|
6 |
import CaseStudy from '@/components/CaseStudy' |
3986e5ad7
|
7 |
import Insight from '@/components/Insight' |
7d5959c84
|
8 |
|
97338adf3
|
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import router from '../router' Vue.use(Router) export default new Router({ mode: 'history', routes: [{ path: '/', name: 'LandingPage', component: LandingPage, // beforeEnter: function(to, from, next) { // var userdata = localStorage.getItem('spotlight_usertoken') // if (userdata) { // router.push({ name: 'Welcome' }) // } // next() // } }, { |
97338adf3
|
28 29 30 31 |
path: '/profile', name: 'Profile', component: Profile, }, |
640c12320
|
32 33 34 35 |
{ path: '/casestudy', name: 'CaseStudy', component: CaseStudy, |
3986e5ad7
|
36 37 38 39 40 |
}, { path: '/insight', name: 'Insight', component: Insight, |
640c12320
|
41 |
} |
7d5959c84
|
42 |
|
97338adf3
|
43 44 45 46 47 48 49 50 |
], scrollBehavior(to, from, savedPosition) { this.seen = false return { x: 0, y: 0 } } |
8a0dd59d9
|
51 |
}) |