forked from DebaucheryLibrarian/traxxx
Using router-link slots for header link indicators. Added release cache to store.
This commit is contained in:
@@ -17,6 +17,10 @@ import Releases from '../releases/releases.vue';
|
||||
|
||||
async function fetchReleases() {
|
||||
this.releases = await this.$store.dispatch('fetchReleases', { limit: 100 });
|
||||
this.$store.commit('setCache', {
|
||||
target: 'home',
|
||||
releases: this.releases,
|
||||
});
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
@@ -39,6 +43,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// releases: this.$store.state.releases.cache.home || [], // slows down apparent page load
|
||||
releases: [],
|
||||
networks: [],
|
||||
pageTitle: null,
|
||||
|
||||
Reference in New Issue
Block a user