|
|
@@ -44,6 +44,9 @@ const user = {
|
|
|
SET_ORG_ID: (state, orgId) => {
|
|
|
state.orgId = orgId
|
|
|
},
|
|
|
+ SET_ORG_TYPE: (state, orgType) => {
|
|
|
+ state.orgType = orgType
|
|
|
+ },
|
|
|
SET_PERMISSIONS: (state, permissions) => {
|
|
|
state.permissions = permissions
|
|
|
},
|
|
|
@@ -122,6 +125,7 @@ const user = {
|
|
|
commit('SET_AVATAR', avatar)
|
|
|
commit('SET_ORG_ID', user.orgId)
|
|
|
commit('SET_ORG_NAME', user.orgName)
|
|
|
+ commit('SET_ORG_TYPE', user.orgType)
|
|
|
resolve(res)
|
|
|
}).catch(error => {
|
|
|
reject(error)
|