Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tab-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down