fix(admin): 壁纸注入补测试;测试夹具真实备案号换占位值;后台历史条数展示
This commit is contained in:
@ -236,7 +236,7 @@ html[data-theme="dark"] .toast{ box-shadow:0 10px 30px rgba(0,0,0,.5) }
|
||||
<!-- 历史访问 -->
|
||||
<div class="card">
|
||||
<h2>历史访问</h2>
|
||||
<p class="sub" style="margin:0 0 12px">删除单条或清空全部浏览记录;删除后 Dashy 的「历史访问」分组会立即重建。</p>
|
||||
<p class="sub" style="margin:0 0 12px">删除单条或清空全部浏览记录;删除后 Dashy 的「历史访问」分组会立即重建。<span id="hist-count" class="muted"></span></p>
|
||||
<div id="hist"><div class="muted">读取中…</div></div>
|
||||
<div style="margin-top:14px"><button class="ghost" id="clear-hist">清空全部历史</button></div>
|
||||
</div>
|
||||
@ -559,6 +559,11 @@ function friendlyTitle(it) {
|
||||
|
||||
function renderHistory() {
|
||||
const el = document.getElementById('hist');
|
||||
const cnt = document.getElementById('hist-count');
|
||||
if (cnt) {
|
||||
// 读取侧已不截断(与门户「历史访问」不限条数保持一致),这里如实显示条数
|
||||
cnt.textContent = HIST.length ? '当前共 ' + HIST.length + ' 条。' : '';
|
||||
}
|
||||
if (!HIST.length) { el.innerHTML = '<div class="muted">暂无历史记录</div>'; return; }
|
||||
el.innerHTML = HIST.map((it, i) => `
|
||||
<div class="itm">
|
||||
|
||||
Reference in New Issue
Block a user