Menu: update routeToItem rejection (#9871)

pull/9904/head
dayu 2018-02-24 10:43:09 +08:00 committed by 杨奕
parent 89509b5fe3
commit 7b89b68295
1 changed files with 2 additions and 1 deletions

View File

@ -244,8 +244,9 @@
} }
if (this.router) { if (this.router) {
this.routeToItem(item, () => { this.routeToItem(item, (error) => {
this.activeIndex = oldActiveIndex; this.activeIndex = oldActiveIndex;
if (error) console.error(error);
}); });
} }
}, },