fix(template): 修复logs.html模板中的AJAX请求处理逻辑
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2cd9b6e106
commit
a031049c64
@ -55,11 +55,11 @@
|
||||
$.ajax({
|
||||
url: '/scanlogs/today',
|
||||
method: 'GET',
|
||||
success: function(logs) {
|
||||
success: function(response) {
|
||||
const tbody = $('#logs-body');
|
||||
tbody.empty();
|
||||
|
||||
logs.forEach(function(log) {
|
||||
response.logs.forEach(function(log) {
|
||||
const row = $('<tr>');
|
||||
if (!log.name) {
|
||||
row.addClass('empty-name');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user