新增“数据编辑”
This commit is contained in:
@@ -12,19 +12,27 @@
|
||||
<!-- CSRF token to assist logout POST via cookie/header -->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="container" style="display:flex; gap:16px;">
|
||||
<aside style="width:220px; background:#fff; border-radius:10px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); padding:16px; height: fit-content;">
|
||||
<h3 style="margin-top:0; font-size:16px;">导航</h3>
|
||||
<nav>
|
||||
<ul style="list-style:none; padding-left:0; line-height:1.9;">
|
||||
<li><a href="/" style="text-decoration:none; color:#1677ff;">主页</a></li>
|
||||
<li><a href="/elastic/upload-page/" style="text-decoration:none; color:#1677ff;">图片上传与识别</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<hr/>
|
||||
<button id="logoutBtn" style="padding:8px 12px; width:100%; background:#ff4d4f; color:#fff; border:none; border-radius:6px; cursor:pointer;">退出登录</button>
|
||||
<div id="logoutMsg" class="muted" style="margin-top:8px;"></div>
|
||||
</aside>
|
||||
|
||||
<div class="card" style="flex:1;">
|
||||
<h2>主页(留白)</h2>
|
||||
<p>用户ID:{{ user_id }}</p>
|
||||
<p>这里留白即可,主页不由当前实现负责。</p>
|
||||
<p class="muted">提示:已使用安全的会话 Cookie 管理登录状态。</p>
|
||||
</div>
|
||||
|
||||
<p style="margin-top: 16px; color: #666;">提示:已使用安全的会话 Cookie 管理登录状态。</p>
|
||||
|
||||
<p>
|
||||
<button id="logoutBtn" style="padding:8px 12px; background:#ff4d4f; color:#fff; border:none; border-radius:6px; cursor:pointer;">退出登录(清除Cookie)</button>
|
||||
<span id="logoutMsg" style="margin-left:8px; color:#666;"></span>
|
||||
</p>
|
||||
<script>
|
||||
function getCookie(name) {
|
||||
const value = `; ${document.cookie}`;
|
||||
@@ -57,7 +65,7 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user