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({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
routes: [
|
routes: [
|
||||||
{ path: '/', redirect: '/coaches' },
|
{ path: '/', redirect: '/coaches' },
|
||||||
{ path: '/coaches', components: null },
|
{ path: '/coaches', components: null },
|
||||||
{ path: '/coaches/:id', components: null, children: [
|
{
|
||||||
{ path: 'contact', component: null}
|
path: '/coaches/:id',
|
||||||
]},
|
components: null,
|
||||||
{ path: '/register', components: null},
|
children: [{ path: 'contact', component: null }]
|
||||||
{ path: '/request', components: null},
|
},
|
||||||
{ path: '/notFound(.*)', components: null}
|
{ path: '/register', components: null },
|
||||||
]
|
{ path: '/request', components: null },
|
||||||
|
{ path: '/notFound(.*)', components: null }
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|
Reference in New Issue
Block a user