浏览代码

Menu: update routeToItem rejection (#9871)

dayu 7 年之前
父节点
当前提交
7b89b68295
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/menu/src/menu.vue

+ 2 - 1
packages/menu/src/menu.vue

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