Explorar o código

fix 跳出路径修改为middleware

anxiaoxia %!s(int64=2) %!d(string=hai) anos
pai
achega
acd8ffaac6
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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}>