diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-01 14:46:40 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-01 14:46:40 +0300 |
commit | d686e23f1f4d7ab873d6d8631c84564b291364fa (patch) | |
tree | 290e4e6ae898784f4d7d4d51d9b57bd5a3583952 /src/store/modules | |
parent | 42eec917d4181481b41e61f85766e45ab45a90ef (diff) | |
download | webui-vue-d686e23f1f4d7ab873d6d8631c84564b291364fa.tar.xz |
add fans info
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/HardwareStatus/SensorsStore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/SensorsStore.js b/src/store/modules/HardwareStatus/SensorsStore.js index 287796d9..ecf2c401 100644 --- a/src/store/modules/HardwareStatus/SensorsStore.js +++ b/src/store/modules/HardwareStatus/SensorsStore.js @@ -16,6 +16,7 @@ const SensorsStore = { }, actions: { async getAllSensors({ dispatch }) { + console.log('getAllSensors@@@'); const collection = await dispatch('getChassisCollection'); if (!collection) return; const promises = collection.reduce((acc, id) => { @@ -35,10 +36,12 @@ const SensorsStore = { .catch((error) => console.log(error)); }, async getSensors({ commit }, id) { + console.log('getSensors@@@'); const sensors = await api .get(`${id}/Sensors`) .then((response) => response.data.Members) .catch((error) => console.log(error)); + console.log('sensors@@@', sensors); if (!sensors) return; const promises = sensors.map((sensor) => { return api.get(sensor['@odata.id']).catch((error) => { |