浏览代码

fix: 路由问题

lvkun 2 年之前
父节点
当前提交
d18a45a83c
共有 2 个文件被更改,包括 5 次插入3 次删除
  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')