mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): stop indicator when not changing page component (#21656)
This commit is contained in:
parent
b57d841614
commit
de639e7ef9
@ -38,7 +38,7 @@ export default defineComponent({
|
||||
|
||||
globalMiddleware.unshift(indicator.start)
|
||||
router.beforeResolve((to, from) => {
|
||||
if (to === from) {
|
||||
if (to === from || to.matched.every((comp, index) => comp.components && comp.components?.default === from.matched[index]?.components?.default)) {
|
||||
indicator.finish()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user