修复统计页面进入退出出现白屏的情况

video_transcode
dinglink 5 years ago
parent 02812dd699
commit 9ce73f93f5

@ -216,7 +216,8 @@ const App = (props) => {
useEffect(() => {
changeParams({
page: 1
page: 1,
type: "subject_info"
});
pathId && staticList(pathId);
}, []);

@ -12,7 +12,7 @@ import { fetchStaticList } from "../../services/staticService";
export const staticList = (id) => {
return (dispatch, getState) => {
const { params, total_count, other_info } = getState().staticReducer;
// console.log('统计数据=====>>>>>', params);
console.log('统计数据=====>>>>>', params);
// if (total_count !== 0 && total_count === other_info.length) return;
fetchStaticList(id, params).then(res => {
// console.log('统计数据=====>>>>>', res);

Loading…
Cancel
Save