update index and detail of course

This commit is contained in:
AceDataCloud committed 2022-02-07 01:55:38 +08:00
1 parent bee5606474
commit 344fd73833
13 files changed
+325 -12

No files matched your search

+7 -2
View File
@@ -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
View File
@@ -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(),