Replaced container key with route watchers to reduce flashing.

This commit is contained in:
2020-05-09 01:42:10 +02:00
parent de5b729c0b
commit f31aef6f5d
9 changed files with 55 additions and 13 deletions

View File

@@ -147,6 +147,10 @@ async function fetchNetwork() {
this.releases = this.network.releases;
}
async function route() {
await this.fetchNetwork();
}
async function mounted() {
await this.fetchNetwork();
this.pageTitle = this.network.name;
@@ -170,6 +174,9 @@ export default {
expanded: false,
};
},
watch: {
$route: route,
},
mounted,
methods: {
fetchNetwork,

View File

@@ -52,8 +52,6 @@ async function searchSites() {
query: this.query,
limit: 20,
});
console.log(this.searchResults);
}
async function mounted() {