mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +00:00
fix: router err maybe undefined (#4704)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user