Skip to content

Commit

Permalink
修复个人中心tab激活不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TruthHun88 committed Oct 20, 2019
1 parent a6962fe commit 9003be1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion components/tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
if (this.tabs.length > 0 && this.curTab == '') {
this.curTab = this.tabs[0].value
}
},
watch: {
curTab: function() {
this.curTab = this.activeTab
}
},
methods: {
tabClick(e) {
Expand Down Expand Up @@ -109,7 +114,7 @@
.tab image {
width: 30upx;
height: 30upx;
height: 30upx;
top: 5upx;
}
}
Expand Down
1 change: 0 additions & 1 deletion pages/bookshelf/bookshelf.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,5 @@
height: 203.7upx;
margin-bottom: 8upx;
}
}
</style>

0 comments on commit 9003be1

Please sign in to comment.