This commit is contained in:
DSQ
2026-03-12 19:00:36 +08:00
parent 1163110810
commit 109c06e1d9
6 changed files with 72 additions and 28 deletions

View File

@@ -307,7 +307,7 @@ function renderTable(data) {
if (!data || data.length === 0) {
const row = document.createElement('tr');
row.innerHTML = '<td colspan="5" style="text-align: center; color: #999;">暂无数据</td>';
row.innerHTML = '<td colspan="4" style="text-align: center; color: #999;">暂无数据</td>';
tableBody.appendChild(row);
return;
}
@@ -335,7 +335,16 @@ function renderTable(data) {
</table>
`;
} catch (e) {
displayData = `<pre style="white-space:pre-wrap; word-wrap:break-word; max-height: 100px; overflow-y: auto; font-size: 12px; margin: 0;">${escapeHtml(displayData)}</pre>`;
displayData = `
<table class="inner-table">
<tbody>
<tr>
<td>原始数据</td>
<td>${escapeHtml(displayData)}</td>
</tr>
</tbody>
</table>
`;
}
row.innerHTML = `