diff --git a/src/lang/en.ts b/src/lang/en.ts index f8ae908..6aa90e3 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -72,6 +72,8 @@ export default { marketing_points: 'Points Setting', question: 'Question Set', question_list: 'Question List', + shop: 'Shop Setting', + game_setting: 'Game Setting' }, navbar: { logOut: 'Log Out', diff --git a/src/lang/zh.ts b/src/lang/zh.ts index 8d32e78..d650d61 100644 --- a/src/lang/zh.ts +++ b/src/lang/zh.ts @@ -72,6 +72,8 @@ export default { marketing_points: '积分设置', question: '题库管理', question_list: '列表', + shop: '店铺设置', + game_setting: '游戏设置' }, navbar: { logOut: '退出登录', diff --git a/src/router/index.ts b/src/router/index.ts index 3ca0b0b..f15ef11 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,6 +10,7 @@ import systemRoutes from '@/router/modules/system' import articleRouters from '@/router/modules/article' import marketingRoutes from '@/router/modules/marketing' import questionRoutes from '@/router/modules/question' +import shopRoutes from '@/router/modules/shop' Vue.use(VueRouter) @@ -117,6 +118,7 @@ export const constantRoutes: RouteConfig[] = [ */ export const asyncRoutes: RouteConfig[] = [ systemRoutes, + shopRoutes, articleRouters, marketingRoutes, questionRoutes, diff --git a/src/router/modules/shop.ts b/src/router/modules/shop.ts new file mode 100644 index 0000000..78c2e0b --- /dev/null +++ b/src/router/modules/shop.ts @@ -0,0 +1,26 @@ +import { RouteConfig } from 'vue-router' +import Layout from '@/layout/index.vue' + +const shopRoutes: RouteConfig = { + path: '/shop', + component: Layout, + meta: { + title: 'shop', + icon: 'component', + alwaysShow: true + }, + children: [ + { + path: 'setting', + component: () => import('@/views/shop/game_setting.vue'), + name: 'ShopSetting', + meta: { + title: 'game_setting', + permissions: ['question:read'], + elicon: 'el-icon-arrow-right' + } + }, + ] +} + +export default shopRoutes diff --git a/src/views/shop/game_setting.vue b/src/views/shop/game_setting.vue new file mode 100644 index 0000000..e69de29