Error Navigation cancelled from "xxx" to "xxx" with a new navigation. #1978
Replies: 1 comment 1 reply
-
This repository is Vue Router 4 where Navigation Failures were redesigned to avoid errors being thrown. You can read more about this in docs and issues like vuejs/vue-router#2881 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请问这个报错是什么原因导致?怎么去解决
在以下这段源码中next()出现异常。
return Promise.all(promises)
}))
// If not redirected
if (!nextCalled) {
next()
}
} catch (err) {
const error = err || {}
if (error.message === 'ERR_REDIRECT') {
return this.$nuxt.$emit('routeChanged', to, from, error)
Beta Was this translation helpful? Give feedback.
All reactions