From 66edd2d27c7acf9f0bf6dbb6704e46b835f89d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=86=E7=B1=B3=E8=8A=B1?= <417727563@qq.com> Date: Thu, 2 Feb 2023 10:04:40 +0800 Subject: [PATCH] =?UTF-8?q?2023-02-02-=E5=89=8D=E5=8F=B0=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/router.config.js | 53 ++++++++----------- ant-design-vue-jeecg/src/permission.js | 2 +- 2 files changed, 22 insertions(+), 33 deletions(-) diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index acb4c3bf..3b149bb7 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -625,42 +625,31 @@ export const constantRouterMap = [ path: '/atlas', component: () => import(/* webpackChunkName: "fail" */ '@/views/seknowgroup/SeKnowAtlasList') }, + { - path: '/shopping',//这里是你需要设置新窗口打开的页面的路径s - component: () => import('@views/shopping/shopHome'), - redirect: '/shopping/shopHome', - hidden: true, - children: [ - { - path: 'shopHome', - name: 'shopHome', - component: () => import('@views/shopping/shopHome'), - }, - { - path: 'clothType',//这里是你需要设置新窗口打开的页面的路径s - name: 'clothType', - component: () => import('@/views/shopping/pages/clothType'), - }, - { - path: 'sirendingzhi',//这里是你需要设置新窗口打开的页面的路径s - name: 'sirendingzhi', - component: () => import('@/views/shopping/pages/sirendingzhi'), - }, - { - path: 'ClothDetail',//这里是你需要设置新窗口打开的页面的路径s - name: 'ClothDetail', - component: () => import('@/views/shopping/pages/clothDetail'), - }, - { - path: 'person',//这里是你需要设置新窗口打开的页面的路径s - name: 'person', - component: () => import('@/views/shopping/pages/gerenzhongxin'), - }, - ] + path: '/shopping/shopHome',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/shopHome'), + }, + { + path: '/shopping/clothType',//这里是你需要设置新窗口打开的页面的路径s + name: 'clothType', + component: () => import('@/views/shopping/pages/clothType'), + }, + { + path: '/shopping/ClothDetail',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/clothDetail'), + }, + { + path: '/shopping/sirendingzhi',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/sirendingzhi'), + }, + { + path: '/shopping/person',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/pages/gerenzhongxin'), }, { - path: '/shopping/views/order',//这里是你需要设置新窗口打开的页面的路径s + path: '/shopping/order',//这里是你需要设置新窗口打开的页面的路径s component: () => import('@/views/shopping/pages/orderDetails'), }, ] diff --git a/ant-design-vue-jeecg/src/permission.js b/ant-design-vue-jeecg/src/permission.js index 6ddfcb42..7c37e9c2 100644 --- a/ant-design-vue-jeecg/src/permission.js +++ b/ant-design-vue-jeecg/src/permission.js @@ -18,7 +18,7 @@ const whiteList = ['/user/login','/userequip/loginequip','/user/sgin', '/gygl/gyglzxt','/sykesjk/sykcsjkzxt','/scrysjk/scrysjkzxt','/jxrysjk/jxrysjkzxt','/jxzz/jxzzglsjkzxt','/scys/scyssjkzxt', '/sckz/sckzzxt','/sbjm/sbjmsjkzxt','/jxgl/jxglsjkzxt','/szls/szlssjkzxt','/jxdsj/jxdsjzszxt', '/ybgl/ybglsjkzxt','/mflgl/mflglsjkzxt','/ddcl/ddclzxt','/ddgl/ddglzxt','/dyhsc/dyhsczxt','/znyy/znyysczhgkzzrj', - '/znyyjc/znyycjrjxt','/gdgz/gdgzzxt','/shopping/shopHome','/shopping/clothType','/shopping/sirendingzhi','/shopping/ClothDetail','/shopping/person'] // no redirect whitelist + '/znyyjc/znyycjrjxt','/gdgz/gdgzzxt','/shopping/shopHome','/shopping/clothType','/shopping/sirendingzhi','/shopping/ClothDetail','/shopping/person','/shopping/person','/shopping/order'] // no redirect whitelist router.beforeEach((to, from, next) => { NProgress.start() // start progress bar