mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-14 07:41:57 +08:00
fix: error in tag refresh
This commit is contained in:
parent
0a3a3d0e2d
commit
92fcc8c50b
@ -40,7 +40,10 @@ export default {
|
|||||||
const $scrollWrapper = this.scrollWrapper
|
const $scrollWrapper = this.scrollWrapper
|
||||||
const tagList = Array.from(window.document.querySelectorAll('#tags-view-container .tags-view-item'))
|
const tagList = Array.from(window.document.querySelectorAll('#tags-view-container .tags-view-item'))
|
||||||
const currentTag = tagList.find(i => i.dataset.fullPath === currentRoute.fullPath)
|
const currentTag = tagList.find(i => i.dataset.fullPath === currentRoute.fullPath)
|
||||||
|
// when jumping `/redirect/` at the beginning of the path will not match
|
||||||
|
if (!currentTag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
let firstTag = null
|
let firstTag = null
|
||||||
let lastTag = null
|
let lastTag = null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user