Skip to content

Commit f173768

Browse files
committed
修复直接输入url跳转没有新增标签的bug
1 parent 6a24b17 commit f173768

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/main/main.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ export default {
167167
*/
168168
this.setTagNavList()
169169
this.setHomeRoute(routers)
170+
const { name, params, query, meta } = this.$route
170171
this.addTag({
171-
route: this.$store.state.app.homeRoute
172+
route: { name, params, query, meta }
172173
})
173174
this.setBreadCrumb(this.$route)
174175
// 设置初始语言

0 commit comments

Comments
 (0)