//贷后检查数据存储 const state = { //单条列表信息 postLoanInfObj: {}, //贷后详情 postLoanDetail: {} }; const mutations = { setPostLoanInfObj: (state:any, postLoanInfObj:any) => { state.postLoanInfObj = postLoanInfObj; }, setPostLoanDetail: (state:any, postLoanDetail:any) => { state.postLoanDetail = postLoanDetail; } }; const actions = { // setPostLoanInfObj: context => { // context.conmit(); // }, // setPostLoanDetail: context => { // context.conmit(); // } }; const getters = { getPostLoanInfObj: (state:any) => { return state.postLoanInfObj; }, getPostLoanDetail: (state:any) => { return state.postLoanDetail; } }; export default { namespaced: true, state, mutations, actions, getters };