  updateAssetHistory(asset1, [], '#asset1HistoryBody', '#asset1Count');
                        updateAssetHistory(asset2, [], '#asset2HistoryBody', '#asset2Count');
                    } else {
                        const errorMsg = response ? response.message : '未知錯誤';
                        showToast('error', '清空記錄失敗: ' + errorMsg);
                        showErrorAlert('清空記錄失敗: ' + errorMsg);
                    }
                },
                error: function(xhr