2023-02-02-前台白名单

zhc4dev
喻忠伟 2 years ago
parent ce6a4b8c56
commit 66edd2d27c
  1. 33
      ant-design-vue-jeecg/src/config/router.config.js
  2. 2
      ant-design-vue-jeecg/src/permission.js

@ -625,42 +625,31 @@ export const constantRouterMap = [
path: '/atlas', path: '/atlas',
component: () => import(/* webpackChunkName: "fail" */ '@/views/seknowgroup/SeKnowAtlasList') component: () => import(/* webpackChunkName: "fail" */ '@/views/seknowgroup/SeKnowAtlasList')
}, },
{ {
path: '/shopping',//这里是你需要设置新窗口打开的页面的路径s path: '/shopping/shopHome',//这里是你需要设置新窗口打开的页面的路径s
component: () => import('@views/shopping/shopHome'), component: () => import('@/views/shopping/shopHome'),
redirect: '/shopping/shopHome',
hidden: true,
children: [
{
path: 'shopHome',
name: 'shopHome',
component: () => import('@views/shopping/shopHome'),
}, },
{ {
path: 'clothType',//这里是你需要设置新窗口打开的页面的路径s path: '/shopping/clothType',//这里是你需要设置新窗口打开的页面的路径s
name: 'clothType', name: 'clothType',
component: () => import('@/views/shopping/pages/clothType'), component: () => import('@/views/shopping/pages/clothType'),
}, },
{ {
path: 'sirendingzhi',//这里是你需要设置新窗口打开的页面的路径s path: '/shopping/ClothDetail',//这里是你需要设置新窗口打开的页面的路径s
name: 'sirendingzhi',
component: () => import('@/views/shopping/pages/sirendingzhi'),
},
{
path: 'ClothDetail',//这里是你需要设置新窗口打开的页面的路径s
name: 'ClothDetail',
component: () => import('@/views/shopping/pages/clothDetail'), component: () => import('@/views/shopping/pages/clothDetail'),
}, },
{ {
path: 'person',//这里是你需要设置新窗口打开的页面的路径s path: '/shopping/sirendingzhi',//这里是你需要设置新窗口打开的页面的路径s
name: 'person', component: () => import('@/views/shopping/pages/sirendingzhi'),
component: () => import('@/views/shopping/pages/gerenzhongxin'),
}, },
]
{
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'), component: () => import('@/views/shopping/pages/orderDetails'),
}, },
] ]

@ -18,7 +18,7 @@ const whiteList = ['/user/login','/userequip/loginequip','/user/sgin',
'/gygl/gyglzxt','/sykesjk/sykcsjkzxt','/scrysjk/scrysjkzxt','/jxrysjk/jxrysjkzxt','/jxzz/jxzzglsjkzxt','/scys/scyssjkzxt', '/gygl/gyglzxt','/sykesjk/sykcsjkzxt','/scrysjk/scrysjkzxt','/jxrysjk/jxrysjkzxt','/jxzz/jxzzglsjkzxt','/scys/scyssjkzxt',
'/sckz/sckzzxt','/sbjm/sbjmsjkzxt','/jxgl/jxglsjkzxt','/szls/szlssjkzxt','/jxdsj/jxdsjzszxt', '/sckz/sckzzxt','/sbjm/sbjmsjkzxt','/jxgl/jxglsjkzxt','/szls/szlssjkzxt','/jxdsj/jxdsjzszxt',
'/ybgl/ybglsjkzxt','/mflgl/mflglsjkzxt','/ddcl/ddclzxt','/ddgl/ddglzxt','/dyhsc/dyhsczxt','/znyy/znyysczhgkzzrj', '/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) => { router.beforeEach((to, from, next) => {
NProgress.start() // start progress bar NProgress.start() // start progress bar

Loading…
Cancel
Save