Browse Source

登录添加角色判断

xiaohaizhao 1 year ago
parent
commit
71f6bc2520
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pages/login/modules/login.js

+ 1 - 0
pages/login/modules/login.js

@@ -74,6 +74,7 @@ function toHome() {
     wx.switchTab({
         url: '/pages/tabbar/home/index'
     })
+    wx.setStorageSync('isLeader', wx.getStorageSync('userMsg').usertype == 21)
 }
 /* 站点数据查询 */
 module.exports = {