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