diff --git a/src/router/index.js b/src/router/index.js index 9d1dbfb..3c9fa3b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -63,7 +63,7 @@ export const constantRoutes = [ }, { path: '/', - redirect: '/user/profile' + redirect: '/sloworder/index' }, { path: '/user', @@ -84,6 +84,22 @@ export const constantRoutes = [ path: '/public/comment', component: () => import('@/views/public/CommentGenerator'), hidden: true + }, + // 慢单管理(移到公共路由,无需权限) + { + path: '/sloworder', + component: Layout, + redirect: 'noredirect', + name: 'SlowOrder', + meta: { title: '下好的慢单', icon: 'list' }, + children: [ + { + path: 'index', + component: () => import('@/views/system/jdorder/orderList'), + name: 'SlowOrderIndex', + meta: { title: '下好的慢单', icon: 'list' } + } + ] } ] @@ -154,23 +170,6 @@ export const dynamicRoutes = [ } ] }, - // 慢单管理 - { - path: '/sloworder', - component: Layout, - redirect: 'noredirect', - name: 'SlowOrder', - meta: { title: '下好的慢单', icon: 'list' }, - permissions: ['jdorder:sloworder:list'], - children: [ - { - path: 'index', - component: () => import('@/views/system/jdorder/orderList'), - name: 'SlowOrderIndex', - meta: { title: '下好的慢单', icon: 'list' } - } - ] - }, // 常用商品管理 { path: '/favorite',