forked from DebaucheryLibrarian/traxxx
Replaced container key with route watchers to reduce flashing.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -52,8 +52,6 @@ async function searchSites() {
|
||||
query: this.query,
|
||||
limit: 20,
|
||||
});
|
||||
|
||||
console.log(this.searchResults);
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
|
||||
Reference in New Issue
Block a user