|
@@ -108,15 +108,12 @@ export default (props) => {
|
|
|
|
|
|
let setTimer = useRef();
|
|
let setTimer = useRef();
|
|
|
|
|
|
- const logOut = (msg) => {
|
|
|
|
- clearTimeout(setTimer.current);
|
|
|
|
- setTimer.current = null;
|
|
|
|
- setTimer.current = setTimeout(() => {
|
|
|
|
- console.log(msg);
|
|
|
|
- window.open('http://10.100.28.70/saasweb/middleware', '_top');
|
|
|
|
- }, 1000 * 60 * 5);
|
|
|
|
- };
|
|
|
|
- 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);
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
clearTimeout(setTimer.current);
|
|
clearTimeout(setTimer.current);
|