Skip to content

Commit

Permalink
修复直接输入url跳转没有新增标签的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lison16 committed Jan 24, 2019
1 parent 6a24b17 commit f173768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/main/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ export default {
*/
this.setTagNavList()
this.setHomeRoute(routers)
const { name, params, query, meta } = this.$route
this.addTag({
route: this.$store.state.app.homeRoute
route: { name, params, query, meta }
})
this.setBreadCrumb(this.$route)
// 设置初始语言
Expand Down

0 comments on commit f173768

Please sign in to comment.