|
|
@@ -21,7 +21,7 @@ export default createStore({
|
|
|
bankCard: null,
|
|
|
showRoomId: null,
|
|
|
platform: '',
|
|
|
- theme: 'theme3',
|
|
|
+ theme: 'theme1',
|
|
|
companyId: ''
|
|
|
},
|
|
|
mutations: {
|
|
|
@@ -87,6 +87,12 @@ export default createStore({
|
|
|
}
|
|
|
},
|
|
|
actions: {
|
|
|
+ getCompanyInfo(context, companyId) {
|
|
|
+ context.commit('setCompanyId', companyId);
|
|
|
+ return http.http.get('/company/get/' + companyId).then(res => {
|
|
|
+ context.commit('setTheme', res.theme);
|
|
|
+ });
|
|
|
+ },
|
|
|
getUserInfo(context, refresh) {
|
|
|
context.dispatch('getBankCard');
|
|
|
return http.http
|