/** When your routing table is too long, you can split it into small modules **/ import Layout from '@/layout' const gamesRouter = { path: '/games', component: Layout, redirect: '/games/list', name: 'Games', meta: { title: '游戏管理', icon: 'nested' }, children: [ { path: 'list', component: () => import('@/views/games/list'), // Parent router-view name: 'GameList', meta: { title: '游戏列表' } }, { path: 'settings', component: () => import('@/views/games/settings'), // Parent router-view name: 'GameSettings', meta: { title: '配置项管理' } }, { path: 'details', component: () => import('@/views/games/details/index'), // Parent router-view redirect: '/games/details/profile', name: 'GameDetails', hidden: true, meta: { title: '游戏信息' }, children: [ { path: 'profile', component: () => import('@/views/games/details/profile'), name: 'GameDetailsProfile', meta: { title: '游戏简介' } }, { path: 'info', component: () => import('@/views/games/details/info'), name: 'GameDetailsInfo', meta: { title: '详细信息' } }, { path: 'settings', component: () => import('@/views/games/details/settings/index'), name: 'GameDetailsSettings', meta: { title: '配置' } }, { path: 'recommendation', component: () => import('@/views/games/details/recommendation'), name: 'GameDetailsRecommendation', meta: { title: '关联推荐' } }, { path: 'share', component: () => import('@/views/games/details/share/index'), name: 'GameDetailsShare', meta: { title: '分享图' } }, { path: 'share/add', component: () => import('@/views/games/details/share/add'), name: 'GameDetailsShareAdd', meta: { title: '新增分享图' } }, { path: 'reward', component: () => import('@/views/games/details/reward'), name: 'GameDetailsReward', meta: { title: '奖励' } }, { path: 'gm/servers', component: () => import('@/views/games/details/gm/servers'), name: 'GameDetailsGMServers', meta: { title: '服务器管理' } }, { path: 'gm/announces', component: () => import('@/views/games/details/gm/announces'), name: 'GameDetailsGMAnnounces', meta: { title: '公告' } }, { path: 'gm/scroll', component: () => import('@/views/games/details/gm/scroll'), name: 'GameDetailsGMScroll', meta: { title: '跑马灯' } }, { path: 'gm/mails', component: () => import('@/views/games/details/gm/mails'), name: 'GameDetailsGMMails', meta: { title: '邮件' } }, { path: 'gm/activities', component: () => import('@/views/games/details/gm/activities'), name: 'GameDetailsGMActivities', meta: { title: '活动' } }, { path: 'gm/codes', component: () => import('@/views/games/details/gm/codes'), name: 'GameDetailsGMCodes', meta: { title: '兑换码' } }, { path: 'gm/gifts', component: () => import('@/views/games/details/gm/gifts'), name: 'GameDetailsGMGifts', meta: { title: '礼包' } }, { path: 'gm/recharge-record', component: () => import('@/views/games/details/gm/recharge-record'), name: 'GameDetailsGMRechargeRecord', meta: { title: '充值记录' } }, { path: 'gm/recharge-request', component: () => import('@/views/games/details/gm/recharge-request'), name: 'GameDetailsGMRechargeRequest', meta: { title: '充值请求' } }, { path: 'gm/users', component: () => import('@/views/games/details/gm/users'), name: 'GameDetailsGMUsers', meta: { title: '用户管理' } }, { path: 'gm/forbid-account', component: () => import('@/views/games/details/gm/forbid-account'), name: 'GameDetailsGMForbidAccount', meta: { title: '封禁记录' } }, { path: 'gm/forbid-speak', component: () => import('@/views/games/details/gm/forbid-speak'), name: 'GameDetailsGMForbidSpeak', meta: { title: '禁言记录' } }, { path: 'gm/chat-logs', component: () => import('@/views/games/details/gm/chat-logs'), name: 'GameDetailsGMChatLogs', meta: { title: '聊天记录' } }, { path: 'gm/op-logs', component: () => import('@/views/games/details/gm/op-logs'), name: 'GameDetailsGMOpLogs', meta: { title: '操作记录' } }, { path: 'doll/dolls/index', component: () => import('@/views/games/details/doll/dolls/index'), name: 'GameDetailsDollDollsIndex', meta: { title: '公仔列表' } }, { path: 'doll/dolls/edit', component: () => import('@/views/games/details/doll/dolls/edit'), name: 'GameDetailsDollDollsEdit', meta: { title: '编辑公仔' } }, { path: 'doll/cards/index', component: () => import('@/views/games/details/doll/cards/index'), name: 'GameDetailsDollCardsIndex', meta: { title: '卡片列表' } }, { path: 'doll/cards/edit', component: () => import('@/views/games/details/doll/cards/edit'), name: 'GameDetailsDollCardsEdit', meta: { title: '编辑卡片' } }, { path: 'doll/cards', component: () => import('@/views/games/details/doll/cards'), name: 'GameDetailsDollCards', meta: { title: '卡片' } }, { path: 'doll/exchange', component: () => import('@/views/games/details/doll/exchange'), name: 'GameDetailsDollExchange', meta: { title: '兑换记录' } }, { path: 'doll/points', component: () => import('@/views/games/details/doll/points'), name: 'GameDetailsDollPoints', meta: { title: '积分墙' } }, { path: 'puzzle/questions', component: () => import('@/views/games/details/puzzle/questions'), name: 'GameDetailsPuzzleQuestions', meta: { title: '题库管理' } }, { path: 'puzzle/levels', component: () => import('@/views/games/details/puzzle/levels'), name: 'GameDetailsPuzzleLevels', meta: { title: '关卡' } }, { path: 'emulate/games', component: () => import('@/views/games/details/emulate/games'), name: 'GameDetailsEmulateGames', meta: { title: '游戏列表' } }, { path: 'emulate/recommend', component: () => import('@/views/games/details/emulate/recommend'), name: 'GameDetailsEmulateRecommend', meta: { title: '游戏推荐' } } ] } ] } export default gamesRouter