Don't react when selecting the current trending tab (#3070)

This commit is contained in:
absidue 2023-01-18 09:21:35 +01:00 committed by GitHub
parent 2cd8f0f2d3
commit 41687aa185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ export default defineComponent({
},
methods: {
changeTab: function (tab) {
if (tab === this.currentTab) {
return
}
this.currentTab = tab
if (this.trendingCache[this.currentTab] && this.trendingCache[this.currentTab].length > 0) {
this.getTrendingInfoCache()