diff --git a/src/tab-bar/index.js b/src/tab-bar/index.js index 73c601d2..5b7abddf 100644 --- a/src/tab-bar/index.js +++ b/src/tab-bar/index.js @@ -51,7 +51,7 @@ Component({ * 根据当前页 path,切换 tab 选中项 */ parseCurrentPage() { - const currentPagePath = '/' + getCurrentPages()[0].route; + const currentPagePath = '/' + getCurrentPages()[getCurrentPages().length-1].route; const list = this.data.list; let index;