管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-09-30 fe25c74329239f48314e8c3f7f0d756f66f0768c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
  <meta charset="UTF-8">
  <title>管道基础大数据平台服务-首页</title>
  <script src="../js/jquery.min.js"></script>
  <script>
    window.onload = function () {
      var url = document.getElementById("url").value;
      if (url) {
        window.location.href = url;
      }
    }
 
    function logout() {
      $.get("logout", function (rs) {
        alert("code: " + rs.code + ", msg: " + rs.msg + ", result: " + rs.result);
 
        if (rs.code == 200) {
          location.href = location.origin + location.pathname;
        }
      });
    }
  </script>
</head>
<body>
  <h1>首页</h1>
  <h2 th:text="${msg}"></h2>
  <input id="url" type="hidden" th:value="${url}">
 
  <div>
    <!--<a th:href="@{/toLogin}">登录</a>-->
    <a href="toLogin?service=http://192.168.20.106:12316/sign/toIndex">登录</a>
  </div>
  <br />
  <div>
    <!--<a th:href="@{/logout}">注销</a>-->
    <a href="javascript:void(0);" onclick="logout(); return false;">登出</a>
  </div>
</body>
</html>