diff options
Diffstat (limited to 'src/store/modules/Settings/PowerPolicyStore.js')
-rw-r--r-- | src/store/modules/Settings/PowerPolicyStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/modules/Settings/PowerPolicyStore.js b/src/store/modules/Settings/PowerPolicyStore.js index 3adaec8d..fc65381e 100644 --- a/src/store/modules/Settings/PowerPolicyStore.js +++ b/src/store/modules/Settings/PowerPolicyStore.js @@ -44,7 +44,7 @@ const PowerPolicyStore = { }, async getPowerRestoreCurrentPolicy({ commit }) { return await api - .get('/redfish/v1/Systems/system') + .get(`${await this.dispatch('global/getSystemPath')}`) .then(({ data: { PowerRestorePolicy } }) => { commit('setPowerRestoreCurrentPolicy', PowerRestorePolicy); }) @@ -54,7 +54,7 @@ const PowerPolicyStore = { const data = { PowerRestorePolicy: powerPolicy }; return await api - .patch('/redfish/v1/Systems/system', data) + .patch(`${await this.dispatch('global/getSystemPath')}`, data) .then(() => { dispatch('getPowerRestoreCurrentPolicy'); return i18n.t('pagePowerRestorePolicy.toast.successSaveSettings'); |