|
|
|
@ -1689,6 +1689,7 @@
|
|
|
|
|
warn(false, ("invalid redirect option: " + (JSON.stringify(redirect)))); |
|
|
|
|
} |
|
|
|
|
return _createRoute(null, location) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3126,7 +3127,9 @@
|
|
|
|
|
BI.RouterWidget = BI.inherit(BI.Widget, { |
|
|
|
|
init: function () { |
|
|
|
|
this.$router = this._router = BI.Router.$router = $router = new VueRouter({ |
|
|
|
|
routes: this.options.routes |
|
|
|
|
routes: this.options.routes, |
|
|
|
|
mode: this.options.mode, |
|
|
|
|
base: this.options.base, |
|
|
|
|
}); |
|
|
|
|
this.$router.beforeEach(function (to, from, next) { |
|
|
|
|
if (to.matched.length === 0) { |
|
|
|
@ -3201,4 +3204,3 @@
|
|
|
|
|
return VueRouter; |
|
|
|
|
|
|
|
|
|
}))); |
|
|
|
|
|