Browse Source

跳转进入重新判断用户角色

xiaohaizhao 1 year ago
parent
commit
918f9192b4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app.js

+ 1 - 0
app.js

@@ -10,6 +10,7 @@ App({
             wx.removeStorageSync('auth')
             wx.removeStorageSync('userauth');
             wx.setStorageSync('userMsg', JSON.parse(options.query.userMsg))
+            wx.setStorageSync('userrole', options.query.userMsg.usertype == 1 ? '业务员' : '经销商');
             wx.setStorageSync('auth', JSON.parse(options.query.auth))
             wx.setStorageSync('siteP', JSON.parse(options.query.site));
             //获取用户权限