13693261870
2025-06-24 8565bd83fcd670ec8379084d600eb97d18037d21
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
42
43
44
45
46
47
48
49
50
<!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 href = $("#aLogin").attr("href") + location.pathname;
      $("#aLogin").attr("href", href);
    }
 
    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>
 
  <div>
    <!--<a th:href="@{/toLogin}">登录</a>-->
    <a id="aLogin" href="toLogin?service=">登录</a>
  </div>
  <br />
 
  <div>
    <a href="../swagger-ui.html" target="_blank">Swagger-UI</a>
  </div>
  <br />
 
  <div>
    <a href="toDruid" target="_blank">toDruid</a>
  </div>
  <br />
 
  <div>
    <!--<a th:href="@{/logout}">注销</a>-->
    <a href="javascript:void(0);" onclick="logout(); return false;">登出</a>
  </div>
  <br />
</body>
</html>