<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="${#request.getContextPath() + '/'}">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, appversion-scalable=0">
    <link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layadmin-tips">
        <i class="layui-icon" face>&#xe664;</i>
        <div class="layui-text" th:text="${session.errorMessage}"></div>
        <button id="showErrorBtn" class="layui-btn layui-btn-xs" onclick="showError()">查看详情</button>
        <ul id="errorStackTraces" style="display: none;">
            <li th:each="errorStackTrace: ${session.errorStackTraces}" th:text="${errorStackTrace}"></li>
        </ul>
    </div>
    <script>
        function showError() {
            document.getElementById('errorStackTraces').style.display = 'block';
            document.getElementById('showErrorBtn').style.display = 'none';
        }
    </script>
</div>
</body>
</html>
      
