const screen = {
state: {
infoForm: JSON.parse(sessionStorage.getItem("INFO_FORM")),
projectId:null,
handleStatus:null,
},
mutations: {
SET_InfoForm: (state, infoForm) => {
state.infoForm = infoForm
sessionStorage.setItem("INFO_FORM", JSON.stringify(infoForm))
},
SET_ProjectId:(state,projectId) => {
state.projectId = projectId
},
SET_HandleStatus:(state,handleStatus) => {
state.handleStatus = handleStatus
}
},
}
export default screen
刷新页面保留vuex数据
于 2022-10-24 14:24:15 首次发布