소스 검색

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);
           });
         }
       },