fix: 修复回收站显示问题

- 修改提示文字:回收站数据可随时恢复,无30天限制
- 清空分页组件:避免显示错误的分页
This commit is contained in:
2026-04-19 17:09:58 +08:00
parent 51cecf1f4e
commit facf39e778

View File

@@ -2340,13 +2340,17 @@ async function loadTrash() {
function renderTrash(items, total) {
const container = document.getElementById('itemList');
const paginationContainer = document.getElementById('pagination');
// 清空分页
paginationContainer.innerHTML = '';
// 显示回收站标题和操作按钮
let header = `
<div class="d-flex justify-content-between align-items-center mb-3">
<div>
<h5><i class="bi bi-trash"></i> 回收站 (${total} 条数据)</h5>
<small class="text-muted">删除的数据可在30天内恢复</small>
<small class="text-muted">回收站数据可随时恢复或彻底删除</small>
</div>
<div>
<button class="btn btn-outline-secondary" onclick="hideTrash()">