diff options
Diffstat (limited to 'src/store/modules/Health/BmcStore.js')
-rw-r--r-- | src/store/modules/Health/BmcStore.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/store/modules/Health/BmcStore.js b/src/store/modules/Health/BmcStore.js index 784bd449..73df10b8 100644 --- a/src/store/modules/Health/BmcStore.js +++ b/src/store/modules/Health/BmcStore.js @@ -3,10 +3,10 @@ import api from '@/store/api'; const ChassisStore = { namespaced: true, state: { - bmc: null + bmc: null, }, getters: { - bmc: state => state.bmc + bmc: (state) => state.bmc, }, mutations: { setBmcInfo: (state, data) => { @@ -32,16 +32,16 @@ const ChassisStore = { bmc.statusState = data.Status.State; bmc.uuid = data.UUID; state.bmc = bmc; - } + }, }, actions: { async getBmcInfo({ commit }) { return await api .get('/redfish/v1/Managers/bmc') .then(({ data }) => commit('setBmcInfo', data)) - .catch(error => console.log(error)); - } - } + .catch((error) => console.log(error)); + }, + }, }; export default ChassisStore; |