Skip to content

Commit

Permalink
Update user-list.html
Browse files Browse the repository at this point in the history
  • Loading branch information
muskf authored Oct 3, 2024
1 parent 4bc547a commit d1c8d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/templates/dashboard/user-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ <h1>用户列表</h1>
'X-Admin-Password': adminPassword
}
})
then(response => response.json())
then(users => {
.then(response => response.json())
.then(users => {
renderUserList(users);
})
catch(error => {
.catch(error => {
console.error('Error fetching user data:', error);
document.getElementById('user-table-body').innerHTML = '<tr><td colspan="5">Error loading user data</td></tr>';
});
Expand Down

0 comments on commit d1c8d2a

Please sign in to comment.