소스 검색

fix 跳转参数改为_top

anxiaoxia 2 년 전
부모
커밋
40ec095070
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/layouts/index.jsx

+ 2 - 2
src/layouts/index.jsx

@@ -110,7 +110,7 @@ export default (props) => {
   setTimer.current = null;
   setTimer.current = setTimeout(() => {
     console.log('----没有点击,退出');
-    window.open('http://10.100.28.70/saasweb/login', '_self');
+    window.open('http://10.100.28.70/saasweb/login', '_top');
   }, 1000 * 60 * 30);
   useEffect(() => {
     clearTimeout(setTimer.current);
@@ -124,7 +124,7 @@ export default (props) => {
         setTimer.current = null;
         setTimer.current = setTimeout(() => {
           console.log('----点击,退出');
-          window.open('http://10.100.28.70/saasweb/login', '_self');
+          window.open('http://10.100.28.70/saasweb/login', '_top');
         }, 1000 * 60 * 30);
       }}
     >