58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
import { RouteConfig } from 'vue-router'
|
|
import Layout from '@/layout/index.vue'
|
|
|
|
const shopRoutes: RouteConfig = {
|
|
path: '/shop',
|
|
component: Layout,
|
|
meta: {
|
|
title: 'shop',
|
|
icon: 'shop',
|
|
alwaysShow: true
|
|
},
|
|
children: [
|
|
{
|
|
path: 'list',
|
|
component: () => import('@/views/shop/list.vue'),
|
|
name: 'ShopList',
|
|
meta: {
|
|
title: 'shop_list',
|
|
permissions: ['shop:read'],
|
|
icon: 'shop_list'
|
|
}
|
|
},
|
|
{
|
|
path: 'create',
|
|
component: () => import('@/views/shop/edit.vue'),
|
|
name: 'CreateShop',
|
|
meta: {
|
|
title: 'create_shop',
|
|
icon: 'edit',
|
|
hidden: true
|
|
}
|
|
},
|
|
{
|
|
path: 'edit/:id',
|
|
component: () => import('@/views/shop/edit.vue'),
|
|
name: 'ShopEditor',
|
|
meta: {
|
|
title: 'shop_edit',
|
|
permissions: ['shop:read'],
|
|
elicon: 'el-icon-arrow-right',
|
|
hidden: true
|
|
}
|
|
},
|
|
{
|
|
path: 'setting',
|
|
component: () => import('@/views/shop/game_setting.vue'),
|
|
name: 'ShopSetting',
|
|
meta: {
|
|
title: 'game_setting',
|
|
permissions: ['question:read'],
|
|
icon: 'game'
|
|
}
|
|
},
|
|
]
|
|
}
|
|
|
|
export default shopRoutes
|