mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: lint
This commit is contained in:
parent
eb2d305e76
commit
52a344d57d
@ -99,7 +99,6 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({
|
|||||||
const _route = shallowRef(router.resolve(initialURL) as RouteLocation)
|
const _route = shallowRef(router.resolve(initialURL) as RouteLocation)
|
||||||
const syncCurrentRoute = () => { _route.value = router.currentRoute.value }
|
const syncCurrentRoute = () => { _route.value = router.currentRoute.value }
|
||||||
nuxtApp.hook('page:finish', syncCurrentRoute)
|
nuxtApp.hook('page:finish', syncCurrentRoute)
|
||||||
|
|
||||||
router.afterEach((to, from) => {
|
router.afterEach((to, from) => {
|
||||||
// We won't trigger suspense if the component is reused between routes
|
// We won't trigger suspense if the component is reused between routes
|
||||||
// so we need to update the route manually
|
// so we need to update the route manually
|
||||||
|
Loading…
Reference in New Issue
Block a user