forked from DebaucheryLibrarian/traxxx
Replaced container key with route watchers to reduce flashing.
This commit is contained in:
@@ -62,6 +62,10 @@ async function fetchSite() {
|
||||
this.releases = this.site.releases;
|
||||
}
|
||||
|
||||
async function route() {
|
||||
await this.fetchSite();
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
await this.fetchSite();
|
||||
|
||||
@@ -80,6 +84,9 @@ export default {
|
||||
pageTitle: null,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
$route: route,
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
fetchSite,
|
||||
|
||||
Reference in New Issue
Block a user