Skip to content

Commit

Permalink
edit TagsView close other tags
Browse files Browse the repository at this point in the history
  • Loading branch information
maozhenzhong committed May 7, 2020
1 parent d88dcbc commit b00a860
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/layout/components/TagsView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class extends Vue {
}
private closeOthersTags() {
if (this.selectedTag.fullPath !== undefined) {
if (this.selectedTag.fullPath !== this.$route.path && this.selectedTag.fullPath !== undefined) {
this.$router.push(this.selectedTag.fullPath)
}
TagsViewModule.delOthersViews(this.selectedTag)
Expand Down Expand Up @@ -260,15 +260,14 @@ export default class extends Vue {
}
}
}
</style>
<style lang="scss" scoped>
.tags-view-container {
height: 34px;
width: 100%;
background: #fff;
border-bottom: 1px solid #d8dce5;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
.tags-view-wrapper {
.tags-view-item {
Expand Down Expand Up @@ -323,7 +322,7 @@ export default class extends Vue {
font-size: 12px;
font-weight: 400;
color: #333;
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3);
box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
li {
margin: 0;
Expand Down

0 comments on commit b00a860

Please sign in to comment.