Browse Source

无JIRA任务 router支持base和mode

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

8
src/router/router.js

@ -7,7 +7,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory());
}(this, (function () { 'use strict';
}(this, (function () { 'use strict';
/* */
@ -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) {
@ -3203,4 +3202,5 @@
BI.Router.isSameRoute = isSameRoute;
return VueRouter;
})));
})));

Loading…
Cancel
Save