Blame view
src/router/index.js
1.57 KB
8a0dd59d9
|
1 2 3 4 |
import Vue from 'vue' import Router from 'vue-router' import { authGuard } from "../auth/authGuard" import LandingPage from '@/components/LandingPage' |
988b5d20a
|
5 6 |
import SignUp from '@/components/SignUp' import Reset from '@/components/Reset' |
f06677bfc
|
7 |
import Profile from '@/components/Profile' |
8a0dd59d9
|
8 |
import welcome from '@/components/welcome' |
298fff252
|
9 |
import Intermediate from '@/components/Intermediate' |
75990a4d9
|
10 |
import Insight from '@/components/Insight' |
8a0dd59d9
|
11 12 13 14 15 16 17 18 19 20 |
import router from '../router' Vue.use(Router) export default new Router({ mode: 'history', routes: [{ path: '/', name: 'LandingPage', component: LandingPage, |
298fff252
|
21 22 23 24 25 26 27 |
// beforeEnter: function(to, from, next) { // var userdata = localStorage.getItem('spotlight_usertoken') // if (userdata) { // router.push({ name: 'Welcome' }) // } // next() // } |
8a0dd59d9
|
28 |
}, |
988b5d20a
|
29 30 31 32 33 34 |
{ path: '/signup', name: 'SignUp', component: SignUp, }, { |
298fff252
|
35 36 37 38 39 |
path: '/intermediate', name: 'Intermediate', component: Intermediate }, { |
988b5d20a
|
40 41 42 |
path: '/reset', name: 'Reset', component: Reset, |
f06677bfc
|
43 44 45 46 47 |
}, { path: '/profile', name: 'Profile', component: Profile, |
75990a4d9
|
48 49 50 51 52 |
}, { path: '/insight', name: 'Insight', component: Insight, |
988b5d20a
|
53 |
} |
8a0dd59d9
|
54 55 56 57 58 59 60 |
], scrollBehavior(to, from, savedPosition) { this.seen = false return { x: 0, y: 0 } } }) |