|
@@ -142,12 +142,11 @@
|
|
|
|
|
|
|
|
function renderHistoryDataTable(data) {
|
|
function renderHistoryDataTable(data) {
|
|
|
const tableContainer = document.getElementById('history-table');
|
|
const tableContainer = document.getElementById('history-table');
|
|
|
-
|
|
|
|
|
- if (historyDataTable && !document.body.contains(historyDataTable.table)) {
|
|
|
|
|
- historyDataTable = null;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 更简单的检测逻辑 - 销毁旧表格
|
|
|
if (historyDataTable) {
|
|
if (historyDataTable) {
|
|
|
- historyDataTable.destroy();
|
|
|
|
|
|
|
+ historyDataTable.destroy();
|
|
|
|
|
+ historyDataTable = null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!data || data.length === 0) {
|
|
if (!data || data.length === 0) {
|