This commit is contained in:
joylink_fanyuhong 2021-12-29 10:20:23 +08:00
parent ba80caeb82
commit 68b9524cce

View File

@ -81,7 +81,10 @@ const user = {
}, },
setBaseUrl: (state, baseUrl) => { setBaseUrl: (state, baseUrl) => {
state.baseUrl = baseUrl; state.baseUrl = baseUrl;
} },
setResourcesUrl: (state, resourcesUrl) => {
state.resourcesUrl = resourcesUrl;
}
}, },
actions: { actions: {
@ -213,6 +216,9 @@ const user = {
setBaseUrl ({commit}, baseUrl) { setBaseUrl ({commit}, baseUrl) {
commit('setBaseUrl', baseUrl); commit('setBaseUrl', baseUrl);
}, },
setResourcesUrl({}, resourcesUrl) {
commit('setResourcesUrl', resourcesUrl);
},
setToken({commit}, token) { setToken({commit}, token) {
commit('SET_TOKEN', token); commit('SET_TOKEN', token);
} }