Replaced container key with route watchers to reduce flashing.
This commit is contained in:
@@ -71,6 +71,10 @@ async function fetchReleases() {
|
||||
this.description = this.tag.description && converter.makeHtml(escapeHtml(this.tag.description));
|
||||
}
|
||||
|
||||
async function route() {
|
||||
await this.fetchReleases();
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
await this.fetchReleases();
|
||||
this.pageTitle = this.tag.name;
|
||||
@@ -91,6 +95,9 @@ export default {
|
||||
hasMedia: false,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
$route: route,
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
fetchReleases,
|
||||
|
||||
Reference in New Issue
Block a user