diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 937e1b456..f38809366 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -81,7 +81,10 @@ const user = { }, setBaseUrl: (state, baseUrl) => { state.baseUrl = baseUrl; - } + }, + setResourcesUrl: (state, resourcesUrl) => { + state.resourcesUrl = resourcesUrl; + } }, actions: { @@ -213,6 +216,9 @@ const user = { setBaseUrl ({commit}, baseUrl) { commit('setBaseUrl', baseUrl); }, + setResourcesUrl({}, resourcesUrl) { + commit('setResourcesUrl', resourcesUrl); + }, setToken({commit}, token) { commit('SET_TOKEN', token); }