若依
7 months ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with
16 additions and
4 deletions
-
ruoyi-ui/src/layout/components/AppMain.vue
-
ruoyi-ui/src/layout/components/TagsView/index.vue
|
|
@ -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> |
|
|
|
|
|
@ -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 |
|
|
|