fix: console reloads data right after saving key (#58)
Co-authored-by: host <host@test.local>
This commit is contained in:
1 parent
3c3b59faae
commit
cff152c5a2
1 file changed
+6
@@ -262,6 +262,12 @@ $("#saveKey").onclick = function () {
|
||||
localStorage.setItem(KEY_STORE, v);
|
||||
$("#key").value = "";
|
||||
setKeyState();
|
||||
// 保存后立即重载数据:此前保存完页面还停留在旧的报错上,
|
||||
// 用户会误以为 key 无效(2026-10-27 实测)。
|
||||
loadHealth();
|
||||
loadProjects();
|
||||
loadWorkers();
|
||||
if ($("#projectSelect").value) loadTasks();
|
||||
};
|
||||
$("#clearKey").onclick = function () { localStorage.removeItem(KEY_STORE); setKeyState(); };
|
||||
$("#refreshHealth").onclick = loadHealth;
|
||||
|
||||
Reference in new issue
Block a user