mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +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) {
|
if (promise && promise.catch) {
|
||||||
promise.catch(err => {
|
promise.catch(err => {
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (err.name !== 'NavigationDuplicated') {
|
if (err && err.name !== 'NavigationDuplicated') {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user