Bläddra i källkod

导航分割修改

princeLee 4 år sedan
förälder
incheckning
1ba71ef40d
1 ändrade filer med 1 tillägg och 6 borttagningar
  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)
       })
     }
   }