File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments