|
@@ -5,7 +5,7 @@ function loginMsg(res) {
|
|
|
wx.setStorageSync('account_list', res.account_list);
|
|
|
if (res.account_list.length == 1) {
|
|
|
let item = res.account_list[0];
|
|
|
- getApp().globalData.userrole = item.usertype == 1 ? '业务员' : '经销商';
|
|
|
+ wx.setStorageSync('userrole', item.usertype == 1 ? '业务员' : '经销商');
|
|
|
wx.setStorageSync('userMsg', item)
|
|
|
query_userauth();
|
|
|
} else {
|