优化
This commit is contained in:
@@ -1974,10 +1974,12 @@
|
||||
|
||||
if (dom.routeSourceSelect) {
|
||||
const currentVal = dom.routeSourceSelect.value;
|
||||
const blackboxSources = sources.filter(s => s.type === 'blackbox');
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async function loadSources() {
|
||||
|
||||
Reference in New Issue
Block a user