mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-02-09 10:21:56 +08:00
Compare commits
2 Commits
3a2e434a53
...
2b425e62e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b425e62e4 | ||
|
|
a837f49291 |
@@ -14,7 +14,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- 顶部菜单超出数量折叠 -->
|
<!-- 顶部菜单超出数量折叠 -->
|
||||||
<el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">
|
<el-submenu :style="{'--theme': theme}" index="more" :key="visibleNumber" v-if="topMenus.length > visibleNumber">
|
||||||
<template slot="title">更多菜单</template>
|
<template slot="title">更多菜单</template>
|
||||||
<template v-for="(item, index) in topMenus">
|
<template v-for="(item, index) in topMenus">
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
|
|||||||
@@ -22,6 +22,22 @@ export default {
|
|||||||
key() {
|
key() {
|
||||||
return this.$route.path
|
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>
|
</script>
|
||||||
|
|||||||
@@ -133,11 +133,7 @@ export default {
|
|||||||
const { name } = this.$route
|
const { name } = this.$route
|
||||||
if (name) {
|
if (name) {
|
||||||
this.$store.dispatch('tagsView/addView', this.$route)
|
this.$store.dispatch('tagsView/addView', this.$route)
|
||||||
if (this.$route.meta.link) {
|
|
||||||
this.$store.dispatch('tagsView/addIframeView', this.$route)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false
|
|
||||||
},
|
},
|
||||||
moveToCurrentTag() {
|
moveToCurrentTag() {
|
||||||
const tags = this.$refs.tag
|
const tags = this.$refs.tag
|
||||||
|
|||||||
Reference in New Issue
Block a user