style: Fixed route.js

This commit is contained in:
scmmishra 2019-03-06 10:55:21 +05:30
parent 28dd4c139e
commit 18a1a8d4f4

View File

@ -9,20 +9,20 @@ const routes = [{
name: 'home', name: 'home',
path: '', path: '',
component: Home component: Home
}, },
{ {
name: 'program', name: 'program',
path: '/Program/:program_name', path: '/Program/:program_name',
component: ProgramPage, component: ProgramPage,
props: true props: true
}, },
{ {
name: 'course', name: 'course',
path: '/Program/:program_name/:course_name/', path: '/Program/:program_name/:course_name/',
component: CoursePage, component: CoursePage,
props: true, props: true,
}, },
{ {
name: 'content', name: 'content',
path: '/Program/:program_name/:course_name/:topic/:type/:content', path: '/Program/:program_name/:course_name/:topic/:type/:content',
component: ContentPage, component: ContentPage,
@ -39,14 +39,14 @@ const routes = [{
}) })
} }
} }
}, },
{ {
name: 'list', name: 'list',
path: '/List/:master', path: '/List/:master',
component: ListPage, component: ListPage,
props: true props: true
}, },
{ {
name: 'signup', name: 'signup',
path: '/Signup', path: '/Signup',
beforeEnter(to, from, next) { beforeEnter(to, from, next) {
@ -54,8 +54,8 @@ const routes = [{
}, },
component: Home, component: Home,
props: true props: true
}, },
{ {
name: 'login', name: 'login',
path: '/Login', path: '/Login',
beforeEnter(to, from, next) { beforeEnter(to, from, next) {
@ -63,8 +63,8 @@ const routes = [{
}, },
component: Home, component: Home,
props: true props: true
}, },
{ {
name: 'logout', name: 'logout',
path: '/Logout', path: '/Logout',
beforeEnter(to, from, next) { beforeEnter(to, from, next) {
@ -72,8 +72,8 @@ const routes = [{
}, },
component: Home, component: Home,
props: true props: true
}, },
{ {
name: 'profile', name: 'profile',
path: '/Profile', path: '/Profile',
component: ProfilePage, component: ProfilePage,
@ -87,7 +87,6 @@ const routes = [{
next() next()
} }
} }
} }];
];
export default routes; export default routes;