From 11427c19dd64384fa621c308831fe2907c2fa248 Mon Sep 17 00:00:00 2001 From: Wayne <943146732@qq.com> Date: Wed, 28 Feb 2024 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/router.config.js | 41 ++++++++++++++-------------- src/views/apps/collector/Setting.vue | 4 +-- 2 files changed, 23 insertions(+), 22 deletions(-) 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' }] }]" /> -
+ 提交