|
@@ -71,9 +71,10 @@ const store = new Vuex.Store({
|
|
// VISITOR:游客,EMPLOYEE:雇员
|
|
// VISITOR:游客,EMPLOYEE:雇员
|
|
data.auth_user['identifyType'] = data.sysUserFlag == '0' ? 'VISITOR' : 'EMPLOYEE';
|
|
data.auth_user['identifyType'] = data.sysUserFlag == '0' ? 'VISITOR' : 'EMPLOYEE';
|
|
data.auth_user['sysUserFlag'] = data.sysUserFlag;
|
|
data.auth_user['sysUserFlag'] = data.sysUserFlag;
|
|
- const permCodes = data.auth_user.permCodes.filter(item => item.indexOf("_mini")>=0);
|
|
|
|
uni.setStorageSync('token', data.access_token);
|
|
uni.setStorageSync('token', data.access_token);
|
|
uni.setStorageSync('userInfo', data.auth_user);
|
|
uni.setStorageSync('userInfo', data.auth_user);
|
|
|
|
+ // 权限码,游客没有
|
|
|
|
+ const permCodes = data.sysUserFlag == '0' ? null : data.auth_user.permCodes.filter(item => item.indexOf("_mini")>=0);
|
|
state.vuex_permCodes = permCodes;
|
|
state.vuex_permCodes = permCodes;
|
|
uni.setStorageSync('permCodes', permCodes);
|
|
uni.setStorageSync('permCodes', permCodes);
|
|
},
|
|
},
|