fix a typo
This commit is contained in:
parent
f1824a50a7
commit
335e43b07a
|
@ -1,17 +1,19 @@
|
|||
import { ceateRouter, createWebHistory } from 'vue-router';
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', redirect: '/coaches' },
|
||||
{ path: '/coaches', components: null },
|
||||
{ path: '/coaches/:id', components: null, children: [
|
||||
{ path: 'contact', component: null}
|
||||
]},
|
||||
{ path: '/register', components: null},
|
||||
{ path: '/request', components: null},
|
||||
{ path: '/notFound(.*)', components: null}
|
||||
]
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', redirect: '/coaches' },
|
||||
{ path: '/coaches', components: null },
|
||||
{
|
||||
path: '/coaches/:id',
|
||||
components: null,
|
||||
children: [{ path: 'contact', component: null }]
|
||||
},
|
||||
{ path: '/register', components: null },
|
||||
{ path: '/request', components: null },
|
||||
{ path: '/notFound(.*)', components: null }
|
||||
]
|
||||
});
|
||||
|
||||
export default router;
|
Reference in New Issue
Block a user