diff --git a/components/tab.vue b/components/tab.vue index 8071577..f4ecc8e 100644 --- a/components/tab.vue +++ b/components/tab.vue @@ -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) { @@ -109,7 +114,7 @@ .tab image { width: 30upx; - height: 30upx; + height: 30upx; top: 5upx; } } diff --git a/pages/bookshelf/bookshelf.vue b/pages/bookshelf/bookshelf.vue index 677b2bf..30411d3 100644 --- a/pages/bookshelf/bookshelf.vue +++ b/pages/bookshelf/bookshelf.vue @@ -237,6 +237,5 @@ height: 203.7upx; margin-bottom: 8upx; } - }