index.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>蔬菜质量安全溯源平台管理后台</title>
  7. </head>
  8. <body>
  9. <script type="text/javascript">
  10. const urlParams = new URLSearchParams(window.location.search);
  11. // 获取xxl_sso_sessionid的值
  12. // const sessionId = urlParams.get('xxl_sso_sessionid');
  13. const token = urlParams.get('token');
  14. const userId = urlParams.get('userId');
  15. if (token) {
  16. window.location.href = "forstlogin/index.html?ver=" + new Date().getTime() + '&userId=' + userId + '&token=' +token;
  17. } else {
  18. window.location.href = "forstlogin/index.html?ver=" + new Date().getTime();
  19. }
  20. // console.log('sessionId', sessionId);
  21. // if (sessionId) {
  22. // window.location.href = "forstlogin/index.html?ver=" + new Date().getTime() + '&xxl_sso_sessionid=' +sessionId;
  23. // }else{
  24. // window.location.href = "forstlogin/index.html?ver=" + new Date().getTime();
  25. // }
  26. </script>
  27. </body>
  28. </html>