|
@@ -7,6 +7,7 @@ function loginMsg(res) {
|
|
|
wx.setStorageSync('isAgree', true)
|
|
|
wx.setStorageSync('account_list', res.account_list);
|
|
|
if (res.account_list.length == 1) {
|
|
|
+ wx.removeStorageSync('userrole')
|
|
|
wx.setStorageSync('userrole', res.account_list[0].usertype == 1 ? '业务员' : '经销商');
|
|
|
wx.removeStorageSync('userMsg')
|
|
|
wx.setStorageSync('userMsg', res.account_list[0])
|