Explorar o código

fix 清除70服务器缓存

anxiaoxia %!s(int64=2) %!d(string=hai) anos
pai
achega
bf89bb2abc
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/layouts/index.jsx

+ 4 - 0
src/layouts/index.jsx

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