Kaynağa Gözat

fix 清除70服务器缓存

anxiaoxia 2 yıl önce
ebeveyn
işleme
bf89bb2abc
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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);
       }}