mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: router err maybe undefined (#4704)
This commit is contained in:
parent
4ea506c559
commit
49471e845e
@ -20,7 +20,7 @@ export function route(router: VueRouter, config: RouteConfig) {
|
||||
if (promise && promise.catch) {
|
||||
promise.catch(err => {
|
||||
/* istanbul ignore if */
|
||||
if (err.name !== 'NavigationDuplicated') {
|
||||
if (err && err.name !== 'NavigationDuplicated') {
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user