Переглянути джерело

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);
       }}
     >