소스 검색

删除报错修改

zhouna 5 년 전
부모
커밋
f616509286
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/modules/HomePage/index.jsx

+ 1 - 0
src/modules/HomePage/index.jsx

@@ -167,6 +167,7 @@ const mapDispatchToProps = function (dispatch) {
         const start = homePage.select_start;
         const end = homePage.select_end;
         const boxMark = homePage.select_boxMark;
+        if(!boxMark)return;
         dispatch({
           type:boxMap[boxMark],
           start,