import { RouteRecordRaw } from 'vue-router'; import MainLayout from 'layouts/MainLayout.vue'; import IndexPage from 'pages/IndexPage.vue'; import GymPage from 'pages/GymPage.vue'; const routes: RouteRecordRaw[] = [ { path: '/', component: MainLayout, children: [ { path: '', component: IndexPage }, { path: 'g/:countryId/:cityId/:gymName', component: GymPage } ], }, // Always leave this as last one, // but you can also remove it { path: '/:catchAll(.*)*', component: () => import('pages/ErrorNotFound.vue'), }, ]; export default routes;