const getDefaultState = () => ({ /** * 返回时所需路径 */ takPath: {}, }) const state = getDefaultState() const mutations = { /** * 返回时所需路径 */ SET_PATH: (state, data) => { console.log(data); state.takPath = data }, } const actions = { } export default { namespaced: true, state, mutations, actions }