1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-08 20:04:35 +08:00

fix[tagsView]:fixed visited view move to currentTag

This commit is contained in:
Mr Xu 2018-10-13 13:49:30 +08:00
parent 323408f8d9
commit 470bce490a

View File

@ -75,7 +75,7 @@ export default {
const tags = this.$refs.tag
this.$nextTick(() => {
for (const tag of tags) {
if (tag.to.path === this.$route.path) {
if (tag.to === this.$route.fullPath) {
this.$refs.scrollPane.moveToTarget(tag.$el)
// when query is different then update