Browse Source

无JIRA任务 router支持base和mode

es6
Kobi 2 years ago
parent
commit
da15d2fe21
  1. 6
      src/router/router.js

6
src/router/router.js

@ -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;
})));
Loading…
Cancel
Save