Ver Fonte

Menu: update routeToItem rejection (#9871)

dayu há 7 anos atrás
pai
commit
7b89b68295
1 ficheiros alterados com 2 adições e 1 exclusões
  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);
           });
         }
       },