diff options
Diffstat (limited to 'src/layouts/AppLayout.vue')
-rw-r--r-- | src/layouts/AppLayout.vue | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue index e040bef8..a4f73daf 100644 --- a/src/layouts/AppLayout.vue +++ b/src/layouts/AppLayout.vue @@ -17,17 +17,17 @@ export default { components: { AppHeader, AppNavigation, - PageContainer + PageContainer, }, data() { return { - routerKey: 0 + routerKey: 0, }; }, watch: { - $route: function() { + $route: function () { // $nextTick = DOM updated - this.$nextTick(function() { + this.$nextTick(function () { // Get the focusTarget DOM element let focusTarget = this.$refs.focusTarget.$el; @@ -41,15 +41,15 @@ export default { // Reason: https://axesslab.com/skip-links/#update-3-a-comment-from-gov-uk focusTarget.removeAttribute('tabindex'); }); - } + }, }, methods: { refresh() { // Changing the component :key value will trigger // a component re-rendering and 'refresh' the view this.routerKey += 1; - } - } + }, + }, }; </script> |