import { RouteConfig } from 'vue-router' import Layout from '@/layout/index.vue' const gameRoutes: RouteConfig = { path: '/game', component: Layout, meta: { title: 'game', icon: 'game', alwaysShow: true, permissions: ['sysgame:*'] }, children: [ { path: 'games', component: () => import('@/views/game/game_list.vue'), name: 'GameList', meta: { title: 'game_list', permissions: ['sysgame:read'], icon: 'game' } }, { path: 'edit_game', component: () => import('@/views/game/game_edit.vue'), name: 'GameDetail', meta: { title: 'game_edit', permissions: ['sysgame:edit'], icon: 'game', hidden: true } }, { path: 'edit_game/:id', component: () => import('@/views/game/game_edit.vue'), name: 'edit_game', meta: { title: 'game_edit', permissions: ['sysgame:edit'], icon: 'game', hidden: true } } ] } export default gameRoutes