mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamCloudSchedule
synced 2025-04-29 07:56:35 +00:00
feat: 修复未定义房间时的处理逻辑,确保正确显示房间信息
This commit is contained in:
parent
5659ad56d3
commit
b1f7f360ea
@ -39,6 +39,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
return fetch(`/get_config.php?id=${encodeURIComponent(configId)}`, { cache: "no-store" }) // 不保留缓存
|
return fetch(`/get_config.php?id=${encodeURIComponent(configId)}`, { cache: "no-store" }) // 不保留缓存
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
if (!room) {
|
||||||
|
room = data.room;
|
||||||
|
roomElem.textContent = room;
|
||||||
|
}
|
||||||
displayExamInfo(data);
|
displayExamInfo(data);
|
||||||
updateCurrentTime();
|
updateCurrentTime();
|
||||||
updateExamInfo(data);
|
updateExamInfo(data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user