Browse Source

refactor(components): 修改教练端首页跳转路径

- 将学生端首页跳转路径替换为教练端首页跳转路径
- 在组件初始化时保存用户类型到 Vuex store
master
liutong 1 year ago
parent
commit
3199720314
  1. 4
      components/AQ/AQTabber.vue

4
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"
},

Loading…
Cancel
Save