yangan
2024-05-30 29014207a8882df16d4372ef20e0d79e6e5df6d1
store/index.js
@@ -59,7 +59,19 @@
         selectedIconPath: '../../static/tabBar-icon/Bmine57.png',
         text: '我的'
      }
   ]
   ],
   fourth: [{
         pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar',
         iconPath: '../../static/tabBar-icon/home.png',
         selectedIconPath: '../../static/tabBar-icon/homeblue.png',
         text: '进场'
      },{
         pagePath: 'pages/doorkeeper-page/doorkeeper-index/exit-index',
         iconPath: '../../static/tabBar-icon/home.png',
         selectedIconPath: '../../static/tabBar-icon/homeblue.png',
         text: '出场'
      }
   ],
}
const store = new Vuex.Store({
   state: {
@@ -173,6 +185,9 @@
         } else if (roleType == 5) {
            state.userTabbar = userRoleTabbar.three
            uni.setStorageSync('userTabbar', state.userTabbar)
         }else if (roleType == 6) {
            state.userTabbar = userRoleTabbar.fourth
            uni.setStorageSync('userTabbar', state.userTabbar)
         }
      },
      // 改变重量