import type { RouteRecordRaw } from 'vue-router'
import ranking_c from './index.vue'
import otherDetail_c from './other/index.vue'

const routes: RouteRecordRaw = {
  path: 'ranking',
  children: [
    {
      name: 'ranking',
      path: '',
      // component: () => import('./index.vue'),
      component: ranking_c,
      meta: { title: '排行榜' },
    },
    {
      name: 'RankingOtherDetail',
      path: 'otherDetail/:id',
      // component: () => import('./other/index.vue'),
      component: otherDetail_c,
      meta: { title: '排行榜' },
    },
  ],
}

export default routes
