@ldmjs/ui 1.0.84 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -428,11 +428,13 @@ class BreadcrumbsComponent extends external_vue_property_decorator_.Vue {
|
|
|
428
428
|
if (item.disabled) {
|
|
429
429
|
return;
|
|
430
430
|
}
|
|
431
|
-
if (
|
|
432
|
-
|
|
433
|
-
console.error('Router is undefined');
|
|
431
|
+
if (this.$attrs.onOpen instanceof Function) {
|
|
432
|
+
this.$attrs.onOpen(item);
|
|
434
433
|
return;
|
|
435
434
|
}
|
|
435
|
+
if (!this.$router) {
|
|
436
|
+
throw new Error('Router is undefined');
|
|
437
|
+
}
|
|
436
438
|
if (item.route) {
|
|
437
439
|
this.$router.push(item.route);
|
|
438
440
|
}
|