From 319972031433d9421c376347ef04d4fe99322d3e Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Tue, 11 Mar 2025 15:51:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor(components):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=95=99=E7=BB=83=E7=AB=AF=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将学生端首页跳转路径替换为教练端首页跳转路径 - 在组件初始化时保存用户类型到 Vuex store --- components/AQ/AQTabber.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/AQ/AQTabber.vue b/components/AQ/AQTabber.vue index b01d7f1..431a50c 100644 --- a/components/AQ/AQTabber.vue +++ b/components/AQ/AQTabber.vue @@ -30,6 +30,8 @@ uni.setStorageSync('userType','1') let userType = uni.getStorageSync('userType') + this.userType = userType + let tabBerIndex = uni.getStorageSync('tabBerIndex') if(tabBerIndex){ this.tabBerIndex = String(tabBerIndex) @@ -43,7 +45,7 @@ this.tabBar = [ { text: "首页", - urlPath:'/pages/student/index/index',//自定义页面跳转路径 + urlPath:'/pages/coach/home/index',//自定义页面跳转路径 iconPath: "/static/images/tabbar/home.png", selectedIconPath: "/static/images/tabbar/home_selected.png" },