From 2030ca115f09a1e271164d1186129be33dc6f9d1 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 22 Aug 2021 20:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/js/main.store.js | 6 +++--- dist/router.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/js/main.store.js b/demo/js/main.store.js index 3efd92eee..f69d33c5f 100644 --- a/demo/js/main.store.js +++ b/demo/js/main.store.js @@ -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); -})(); \ No newline at end of file +})(); diff --git a/dist/router.js b/dist/router.js index 27c1b4a38..728cafc2a 100644 --- a/dist/router.js +++ b/dist/router.js @@ -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 () {