diff --git a/src/common/modules.js b/src/common/modules.js index e9822403..2bed1eba 100644 --- a/src/common/modules.js +++ b/src/common/modules.js @@ -12,11 +12,6 @@ export const config = { for (const key in params) { Vue.set(state, key, params[key]) } - }, - clearConfig(state) { - for (const key in state) { - delete state[key] - } } }, actions: { @@ -49,7 +44,6 @@ export const config = { ...res.data, agentSignURL: url } - if (!!state.corpid && res.data.corpid != state.corpid) commit('clearConfig') commit("getConfig", config) return config }