Ver código fonte

导航分割修改

princeLee 4 anos atrás
pai
commit
1ba71ef40d
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      src/App.vue

+ 1 - 6
src/App.vue

@@ -87,12 +87,7 @@ export default {
             this.$router.options.routes[i].children.push(route)
           }
         }
-        // 去掉项目管理的路由
-        const oldRouter = this.$router.options.routes.filter(item => {
-          if (!item.name) return false
-          return item.name.search(/工作台|业务线|项目管理/) < 0
-        })
-        this.$store.dispatch('data/setRoutes', oldRouter)
+        this.$store.dispatch('data/setRoutes', this.$router.options.routes)
       })
     }
   }