Browse Source

Merge pull request #17551 in DEC/fineui from master to feature/x

* commit '6c6bc2eb1bc658fb578cc9680cebeea6adc5475e':
  无JIRA任务 路由支持base参数
es6
superman 3 years ago
parent
commit
a6d3a8da15
  1. 3
      src/router/router.js

3
src/router/router.js

@ -3127,7 +3127,8 @@
init: function () { init: function () {
this.$router = this._router = BI.Router.$router = $router = new VueRouter({ this.$router = this._router = BI.Router.$router = $router = new VueRouter({
mode: this.options.mode, mode: this.options.mode,
routes: this.options.routes routes: this.options.routes,
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) {

Loading…
Cancel
Save