Explorar el Código

Menu: update routeToItem rejection (#9871)

dayu hace 7 años
padre
commit
7b89b68295
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
           });
         }
       },