From bd95a6030cdeeb3acea564441d0c71feb6e708e2 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期一, 25 三月 2024 18:21:03 +0800 Subject: [PATCH] tabBar问题调整 --- pages/student/index.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/pages/student/index.js b/pages/student/index.js index 9a56f81..6911ad5 100644 --- a/pages/student/index.js +++ b/pages/student/index.js @@ -26,7 +26,11 @@ * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず */ onShow() { - + if (typeof this.getTabBar === 'function' && this.getTabBar()) { + this.getTabBar().setData({ + active: 2 + }) + } }, /** -- Gitblit v1.9.1