const state = { reportFillingDetail: {}, reportPageDetail: {} } const getters = {} const actions = { } const mutations = { changeReportFillingDetail(state, newData) { // 这里简单举个例子 修改个名字 state.reportFillingDetail = newData }, changeReportPageDetail(state, newData) { state.reportPageDetail = newData } } export default { namespaced: true, state, getters, actions, mutations }