diff --git a/src/config/router.config.js b/src/config/router.config.js index b1f2711..cd032b2 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -296,6 +296,27 @@ export const asyncRouterMap = [ permission: ['/goods/source/index'], }, }, + + { + path: '/apps/collector', + component: RouteView, + redirect: '/apps/collector/index', + meta: { title: '商品采集', keepAlive: false, permission: ['/apps/collector'] }, + moduleKey: 'apps-collector', + isHideChildren: true, + children: [ + { + path: '/apps/collector/index', + component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Index'), + meta: { title: '一键采集', keepAlive: false, permission: ['/apps/collector/index'] }, + }, + { + path: '/apps/collector/setting', + component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Setting'), + meta: { title: '接口配置', keepAlive: false, permission: ['/apps/collector/setting'] }, + }, + ], + }, ], }, @@ -964,26 +985,6 @@ export const asyncRouterMap = [ }, ], }, - { - path: '/apps/collector', - component: RouteView, - redirect: '/apps/collector/index', - meta: { title: '商品采集', keepAlive: false, permission: ['/apps/collector'] }, - moduleKey: 'apps-collector', - isHideChildren: true, - children: [ - { - path: '/apps/collector/index', - component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Index'), - meta: { title: '一键采集', keepAlive: false, permission: ['/apps/collector/index'] }, - }, - { - path: '/apps/collector/setting', - component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Setting'), - meta: { title: '接口配置', keepAlive: false, permission: ['/apps/collector/setting'] }, - }, - ], - }, ], }, diff --git a/src/views/apps/collector/Setting.vue b/src/views/apps/collector/Setting.vue index 76ec672..fe5d680 100644 --- a/src/views/apps/collector/Setting.vue +++ b/src/views/apps/collector/Setting.vue @@ -8,14 +8,14 @@ placeholder="请输入APIKEY" v-decorator="['config.99api.apiKey', { rules: [{ required: true, min: 2, message: '请输入APIKEY' }] }]" /> -