修复默认关闭Tags-Views时,内链页面打不开

This commit is contained in:
RuoYi 2024-11-27 19:59:11 +08:00
parent 8e99b826fa
commit 4a9011a727
2 changed files with 16 additions and 4 deletions

View File

@ -22,6 +22,22 @@ export default {
key() {
return this.$route.path
}
},
watch: {
$route() {
this.addIframe()
}
},
mounted() {
this.addIframe()
},
methods: {
addIframe() {
const {name} = this.$route
if (name && this.$route.meta.link) {
this.$store.dispatch('tagsView/addIframeView', this.$route)
}
}
}
}
</script>

View File

@ -133,11 +133,7 @@ export default {
const { name } = this.$route
if (name) {
this.$store.dispatch('tagsView/addView', this.$route)
if (this.$route.meta.link) {
this.$store.dispatch('tagsView/addIframeView', this.$route)
}
}
return false
},
moveToCurrentTag() {
const tags = this.$refs.tag