Browse Source

Pull request #2109: 无JIRA任务 整理代码

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'aced5328c11e3479006d6945d6b544c06187cf08':
  整理代码
es6
guy 3 years ago
parent
commit
7a67fd1aff
  1. 4
      demo/js/main.store.js
  2. 2
      dist/router.js

4
demo/js/main.store.js

@ -44,13 +44,13 @@
handleTreeSelectChange: function (v) {
var matched = BI.some(Demo.CONFIG, function (index, item) {
if (item.value === v) {
BI.router.push(item.text);
BI.Router.$router.push(item.text);
// BI.history.navigate(item.text, {trigger: true});
return true;
}
});
if (!matched) {
BI.router.push("/");
BI.Router.$router.push("/");
// BI.history.navigate("", {trigger: true});
}
}

2
dist/router.js vendored

@ -3125,7 +3125,7 @@
var $router, cbs = [];
var RouterWidget = BI.inherit(BI.Widget, {
init: function () {
this.$router = BI.Router.$router = $router = new VueRouter({
this.$router = this._router = BI.Router.$router = $router = new VueRouter({
routes: this.options.routes
});
this.$router.afterEach(function () {

Loading…
Cancel
Save