소스 검색

Merge branch 'bug-fix'

hbchen 1 년 전
부모
커밋
5477b12b56
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/utils/TimeOnPage.js

+ 1 - 1
src/utils/TimeOnPage.js

@@ -37,7 +37,7 @@ export const endCalc = (type,intervalT)=>{
   //console.log('关闭计时器')
   clearInterval(timer)
   const IsActive = sessionStorage.getItem('IsActive')
-  if(Number(IsActive)){
+  if(Number(IsActive) && localStorage.getItem('auth')){
      sendTOPInfo(type,intervalT)
   }
   stayTime = 0