在写 modules 时出现的错误。 错误示例 const st=new Vuex.Store({ getters, actions, state, mutations }) export default st 正确写法 export default { getters, actions, state, mutations } 已经在主index创建了store,无需在modules中再创建。