// getters
const getters = {
netStatusMonitorData: state => {
return state.faultInfo;
},
};
const mutations = {
[baseTypes.UPDATE_DATA_MODULE](state) {
//oldcode
//state.faultInfo =pageData.dataSource;
//赋值之后不会触发getter方法刷新,修改为深拷贝之后即可触发getter刷新
let tempData = {};
$.extend(true, tempData, pageData.dataSource);
state.faultInfo = tempData;
}
};