update index and detail of course
This commit is contained in:
1 parent
bee5606474
commit
344fd73833
13 files changed
+325
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
export default {
|
||||
path: '/course',
|
||||
name: 'course',
|
||||
path: '/courses',
|
||||
name: 'courses',
|
||||
meta: {
|
||||
auth: true
|
||||
},
|
||||
@@ -10,6 +10,11 @@ export default {
|
||||
path: '',
|
||||
name: 'course-list',
|
||||
component: () => import('@/pages/course/List.vue')
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
name: 'course-detail',
|
||||
component: () => import('@/pages/course/Detail.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
+9
-1
@@ -3,7 +3,15 @@ import auth from './auth';
|
||||
import course from './course';
|
||||
import store from '@/store';
|
||||
|
||||
const routes = [auth, course];
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'index',
|
||||
redirect: '/courses'
|
||||
},
|
||||
auth,
|
||||
course
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
|
||||
Reference in new issue
Block a user