From d68681faa08ebed226c6af8bb489e5f2e370e8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Fri, 19 Sep 2025 18:35:07 +0800 Subject: [PATCH] 1 --- src/router/index.js | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) 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',