From 68b9524cce8eea1f685940683f5c80ad80478f60 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 29 Dec 2021 10:20:23 +0800 Subject: [PATCH] zanti --- src/store/modules/user.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); }