diff options
Diffstat (limited to 'src/store/modules/Logs/EventLogStore.js')
-rw-r--r-- | src/store/modules/Logs/EventLogStore.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/store/modules/Logs/EventLogStore.js b/src/store/modules/Logs/EventLogStore.js index f7b2ead6..e67da39b 100644 --- a/src/store/modules/Logs/EventLogStore.js +++ b/src/store/modules/Logs/EventLogStore.js @@ -42,7 +42,9 @@ const EventLogStore = { actions: { async getEventLogData({ commit }) { return await api - .get('/redfish/v1/Systems/system/LogServices/EventLog/Entries') + .get( + `${await this.dispatch('global/getSystemPath')}/LogServices/EventLog/Entries`, + ) .then(({ data: { Members = [] } = {} }) => { const eventLogs = Members.map((log) => { const { @@ -79,7 +81,7 @@ const EventLogStore = { async deleteAllEventLogs({ dispatch }, data) { return await api .post( - '/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog', + `${await this.dispatch('global/getSystemPath')}/LogServices/EventLog/Actions/LogService.ClearLog`, ) .then(() => dispatch('getEventLogData')) .then(() => i18n.tc('pageEventLogs.toast.successDelete', data.length)) |