Skip to content

Commit 0616fd6

Browse files
committed
fix tagView bug
1 parent 26d2b3c commit 0616fd6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/store/modules/routes.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ function setRedirect(routes, redirect = '') {
6464
let redirectName = defaultRedirectRoute.name
6565
route.redirect = `${redirect}/${route.name}/${redirectName}`
6666
}
67-
// let index = route.redirect && route.redirect.lastIndexOf('/')
68-
// let fatherDir = route.redirect && route.redirect.substring(0, index)
6967
let fatherDir = route.redirect && `${redirect}/${route.name}`
7068
route.children = setRedirect(route.children, fatherDir)
7169
}

src/store/modules/tagsView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
const isHas = state.tagsView.some((v, index) => {
1616
if (v.path === view.path) {
1717
// 存在时进行替换(场景:参数变化)
18-
state.tagsView.splice(index, 1, view)
18+
state.tagsView.splice(index, 1, { ...view })
1919
return true
2020
}
2121
})

0 commit comments

Comments
 (0)