Browse Source

无JIRA任务 路由支持base参数

es6
windy 2 years ago
parent
commit
278de9016a
  1. 3
      src/router/router.js

3
src/router/router.js

@ -3127,7 +3127,8 @@
init: function () {
this.$router = this._router = BI.Router.$router = $router = new VueRouter({
mode: this.options.mode,
routes: this.options.routes
routes: this.options.routes,
base: this.options.base,
});
this.$router.beforeEach(function (to, from, next) {
if (to.matched.length === 0) {

Loading…
Cancel
Save