This commit is contained in:
CN-JS-HuiBai
2026-04-06 15:59:37 +08:00
parent ff439bb831
commit b2f6f7d2d0

View File

@@ -1974,10 +1974,12 @@
if (dom.routeSourceSelect) { if (dom.routeSourceSelect) {
const currentVal = dom.routeSourceSelect.value; const currentVal = dom.routeSourceSelect.value;
const blackboxSources = sources.filter(s => s.type === 'blackbox');
dom.routeSourceSelect.innerHTML = '<option value="">-- 选择数据源 --</option>' + dom.routeSourceSelect.innerHTML = '<option value="">-- 选择数据源 --</option>' +
sources.map(s => `<option value="${s.id}">${escapeHtml(s.name)}</option>`).join(''); blackboxSources.map(s => `<option value="${s.id}">${escapeHtml(s.name)}</option>`).join('');
dom.routeSourceSelect.value = currentVal; dom.routeSourceSelect.value = currentVal;
} }
} }
async function loadSources() { async function loadSources() {