diff --git a/src/router/modules/shop.ts b/src/router/modules/shop.ts index fd68254..a96530b 100644 --- a/src/router/modules/shop.ts +++ b/src/router/modules/shop.ts @@ -10,37 +10,6 @@ const shopRoutes: RouteConfig = { 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'), diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 2681620..2ffcb38 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -31,6 +31,37 @@ const systemRoutes: RouteConfig = { icon: 'admin' } }, + { + 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: 'i18n', component: () => import(/* webpackChunkName: "i18n-demo" */ '@/views/i18n-demo/index.vue'), diff --git a/src/views/shop/list.vue b/src/views/shop/list.vue index 0017c5b..845704a 100644 --- a/src/views/shop/list.vue +++ b/src/views/shop/list.vue @@ -11,7 +11,7 @@ 重置 - +