| | |
| | | :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" |
| | | tag="span" |
| | | class="tags-view-item" |
| | | :style="{background:isActive(tag)?$store.state.settings.theme:'',border:isActive(tag)?'1px solid'+$store.state.settings.theme:''}" |
| | | @click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''" |
| | | @contextmenu.prevent.native="openMenu(tag,$event)" |
| | | > |
| | |
| | | }, |
| | | computed: { |
| | | visitedViews() { |
| | | if (this.$store.state.tagsView.visitedViews.length > 10) { |
| | | // eslint-disable-next-line vue/no-side-effects-in-computed-properties |
| | | this.dialogVisible = true |
| | | } |
| | | // 暂时取消十个标签页限制提示 |
| | | // if (this.$store.state.tagsView.visitedViews.length > 10) { |
| | | // // eslint-disable-next-line vue/no-side-effects-in-computed-properties |
| | | // this.dialogVisible = true |
| | | // } |
| | | return this.$store.state.tagsView.visitedViews |
| | | }, |
| | | routes() { |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | <style lang="scss"> |
| | | $main_color: #42b983; |
| | | .tags-view-container { |
| | | height: 34px; |