|
@@ -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)
|
|
|
})
|
|
|
}
|
|
|
}
|