Przeglądaj źródła

fix 跳出路径修改为middleware

anxiaoxia 2 lat temu
rodzic
commit
acd8ffaac6
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      src/layouts/index.jsx

+ 6 - 1
src/layouts/index.jsx

@@ -127,7 +127,12 @@ export default (props) => {
       className={styles.layout}
       onClick={(event) => {
         console.log('----已点击等待超时,退出');
-        logOut('----点击后超时,退出');
+        clearTimeout(setTimer.current);
+        setTimer.current = null;
+        setTimer.current = setTimeout(() => {
+          console.log('----点击超时,退出');
+          window.open('http://10.100.28.70/saasweb/middleware', '_top');
+        }, 1000 * 60 * 5);
       }}
     >
       <div className={styles.header}>