Browse Source

无JIRA任务 router支持base和mode

es6
Kobi 3 years ago
parent
commit
591723012b
  1. 4
      src/router/router.js

4
src/router/router.js

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

Loading…
Cancel
Save