v0.7测试

This commit is contained in:
2026-04-15 08:41:44 +08:00
parent a7f491cef6
commit 637f3b665d
7 changed files with 30 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ var currentHistoryPage = 1;
var totalHistoryPages = 1;
async function loadStudentsForSelect() {
const res = await apiGet('/api/admin/students');
const res = await apiGet('/api/admin/students', {page_size: 1000});
if (res && res.success) {
let html = '<option value="">全部</option>';
res.data.students.forEach(s => {

View File

@@ -174,7 +174,7 @@ async function submitAddStudent() {
// 显示添加管理员模态框
function showAddAdminModal() {
document.getElementById('addAdminModal').style.display = 'flex';
document.getElementById('addAdminForm').reset();
document.getElementById('addAdminForm')?.reset();
}
// 提交添加管理员