Refactor popular page V2
This commit is contained in:
parent
5bc2e70e88
commit
60a315f360
|
@ -26,14 +26,11 @@ export default Vue.extend({
|
|||
mounted: function () {
|
||||
this.shownResults = this.popularCache
|
||||
if (!this.shownResults || this.shownResults.length < 1) {
|
||||
this.fetchTrendingInfo()
|
||||
this.fetchPopularInfo()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
refreshTrendingInfo: function () {
|
||||
this.fetchTrendingInfo()
|
||||
},
|
||||
fetchTrendingInfo: async function () {
|
||||
fetchPopularInfo: async function () {
|
||||
const searchPayload = {
|
||||
resource: 'popular',
|
||||
id: '',
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
icon="sync"
|
||||
class="floatingTopButton"
|
||||
:size="12"
|
||||
:theme="primary"
|
||||
@click="refreshTrendingInfo"
|
||||
theme="primary"
|
||||
@click="fetchPopularInfo"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue