|
@@ -22,7 +22,8 @@ export default createStore({
|
|
|
showRoomId: null,
|
|
showRoomId: null,
|
|
|
platform: '',
|
|
platform: '',
|
|
|
theme: 'theme1',
|
|
theme: 'theme1',
|
|
|
- companyId: ''
|
|
|
|
|
|
|
+ companyId: '',
|
|
|
|
|
+ companyInfo: {}
|
|
|
},
|
|
},
|
|
|
mutations: {
|
|
mutations: {
|
|
|
setFinished(state, finished) {
|
|
setFinished(state, finished) {
|
|
@@ -84,6 +85,9 @@ export default createStore({
|
|
|
},
|
|
},
|
|
|
setCompanyId(state, companyId) {
|
|
setCompanyId(state, companyId) {
|
|
|
state.companyId = companyId;
|
|
state.companyId = companyId;
|
|
|
|
|
+ },
|
|
|
|
|
+ setCompanyInfo(state, companyInfo) {
|
|
|
|
|
+ state.companyInfo = companyInfo;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
actions: {
|
|
actions: {
|
|
@@ -92,6 +96,7 @@ export default createStore({
|
|
|
sessionStorage.setItem('companyId', companyId);
|
|
sessionStorage.setItem('companyId', companyId);
|
|
|
return http.http.get('/company/get/' + companyId).then(res => {
|
|
return http.http.get('/company/get/' + companyId).then(res => {
|
|
|
context.commit('setTheme', res.theme);
|
|
context.commit('setTheme', res.theme);
|
|
|
|
|
+ context.commit('setCompanyInfo', res);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
getUserInfo(context, refresh) {
|
|
getUserInfo(context, refresh) {
|