forked from DebaucheryLibrarian/traxxx
Replaced container key with route watchers to reduce flashing.
This commit is contained in:
@@ -259,6 +259,10 @@ async function fetchActor() {
|
||||
});
|
||||
}
|
||||
|
||||
async function route() {
|
||||
await this.fetchActor();
|
||||
}
|
||||
|
||||
function scrollPhotos(event) {
|
||||
event.currentTarget.scrollLeft += event.deltaY; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
@@ -287,6 +291,9 @@ export default {
|
||||
expanded: false,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
$route: route,
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
fetchActor,
|
||||
|
||||
Reference in New Issue
Block a user