|
|
|
@ -44,17 +44,17 @@
|
|
|
|
|
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});
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.store("demo.store.main", Store); |
|
|
|
|
})(); |
|
|
|
|
})(); |
|
|
|
|