Browse Source

新增树控件练习路由

DYaiu 4 years ago
parent
commit
796a232558
3 changed files with 6 additions and 0 deletions
  1. 1 0
      src/layout/Sidebar.vue
  2. 5 0
      src/router/index.js
  3. 0 0
      src/views/treeDemo/tree.vue

+ 1 - 0
src/layout/Sidebar.vue

@@ -8,6 +8,7 @@
       mode="vertical"
       router
       :collapse="true"
+      style="width:115px"
     >
       <template v-for="(item, index) in routers">
         <el-menu-item :index="item.path" :key="index">{{item.title}}</el-menu-item>

+ 5 - 0
src/router/index.js

@@ -19,6 +19,11 @@ export const constantRoutes = [
         name: 'report',
         title: '日报',
         component: () => import('@/views/report/report')
+    }, {
+        path: '/tree',
+        name: 'treeWork',
+        title: 'Tree树形控件',
+        component: () => import('@/views/report/report')
     }
 ]
 

+ 0 - 0
src/views/treeDemo/tree.vue