修复错误密码填入的问题

This commit is contained in:
CN-JS-HuiBai
2026-04-05 19:36:45 +08:00
parent 46ef8131c7
commit 6b9de37bf9
4 changed files with 10 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ document.addEventListener('DOMContentLoaded', () => {
const promForm = document.getElementById('promForm');
const initForm = document.getElementById('initForm');
const promName = document.getElementById('promName');
const promName = document.getElementById('promSourceName');
const promUrl = document.getElementById('promUrl');
const promDesc = document.getElementById('promDesc');
const btnPromTest = document.getElementById('btnPromTest');
@@ -69,6 +69,7 @@ document.addEventListener('DOMContentLoaded', () => {
promForm.style.display = 'block';
initHeaderTitle.textContent = '配置 Prometheus';
initHeaderDesc.textContent = '配置您的第一个 Prometheus 数据源监控连接';
if (promName) promName.value = ''; // Ensure it's clear on load
}
} catch (err) {
initForm.style.display = 'block';