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