Преглед на файлове

feat 三十分钟无操作跳出

anxiaoxia преди 2 години
родител
ревизия
4d9cdcf738
променени са 2 файла, в които са добавени 7 реда и са изтрити 5 реда
  1. 3 3
      config/proxy.ts
  2. 4 2
      src/layouts/index.jsx

+ 3 - 3
config/proxy.ts

@@ -26,12 +26,12 @@ export default {
     //   },
     // },
     '/sgadmin/duoduo-service': {
-      //target: 'https://duoduoenv.sagacloud.cn/',
-      target: 'http://10.100.28.79',
+      target: 'https://duoduoenv.sagacloud.cn/',
+      //   target: 'http://10.100.28.79',
       changeOrigin: true,
       pathRewrite: {
         //'^/sgadmin': '/sgadmin',
-        '^/sgadmin/duoduo-service': '/sgadmin/duoduo-service',
+        '^/sgadmin/duoduo-service': '/duoduo-service',
       },
     },
   },

+ 4 - 2
src/layouts/index.jsx

@@ -109,7 +109,8 @@ export default (props) => {
   clearTimeout(setTimer.current);
   setTimer.current = null;
   setTimer.current = setTimeout(() => {
-    window.open('http://10.100.28.70', '_self');
+    console.log('----没有点击,退出');
+    window.open('http://10.100.28.70/saasweb/login', '_self');
   }, 1000 * 60 * 30);
   useEffect(() => {
     clearTimeout(setTimer.current);
@@ -122,7 +123,8 @@ export default (props) => {
         clearTimeout(setTimer.current);
         setTimer.current = null;
         setTimer.current = setTimeout(() => {
-          window.open('http://10.100.28.70', '_self');
+          console.log('----点击,退出');
+          window.open('http://10.100.28.70/saasweb/login', '_self');
         }, 1000 * 60 * 30);
       }}
     >