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