Browse Source

fix: 路由问题

lvkun 2 năm trước cách đây
mục cha
commit
d18a45a83c
2 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 2 0
      src/layout/components/Sidebar/SidebarItem.vue
  2. 3 3
      src/router/index.ts

+ 2 - 0
src/layout/components/Sidebar/SidebarItem.vue

@@ -49,6 +49,8 @@ const changeRoute = (route: ROUTER.RoutesProps) => {
   if (route.link) {
     window.open(route.path)
   } else {
+    console.log('route.path:', route.path)
+
     RootRouter.push(route.path)
   }
 }

+ 3 - 3
src/router/index.ts

@@ -370,12 +370,12 @@ const cvs = {
       ]
     },
     {
-      path: '/cvs/dataSever',
-      name: '数据服务',
+      path: '/cvs/cvsSever',
+      name: '数据管理',
       icon: '',
       children: [
         {
-          path: '/cvs/dataSever/template',
+          path: '/cvs/cvsSever/template',
           name: '模版管理',
           icon: '',
           component: () => import('@/pages/cvs/dataServer/template.vue')