forked from DebaucheryLibrarian/traxxx
Replaced container key with route watchers to reduce flashing.
This commit is contained in:
@@ -22,6 +22,10 @@ async function fetchReleases() {
|
||||
});
|
||||
}
|
||||
|
||||
async function route() {
|
||||
await this.fetchReleases();
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
this.pageTitle = '';
|
||||
|
||||
@@ -44,6 +48,9 @@ export default {
|
||||
beforeRouteEnter(to, from, next) {
|
||||
next(vm => vm.$set(vm, 'from', from));
|
||||
},
|
||||
watch: {
|
||||
$route: route,
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
fetchReleases,
|
||||
|
||||
Reference in New Issue
Block a user