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({
|
$.ajax({
|
||||||
url: '/scanlogs/today',
|
url: '/scanlogs/today',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
success: function(logs) {
|
success: function(response) {
|
||||||
const tbody = $('#logs-body');
|
const tbody = $('#logs-body');
|
||||||
tbody.empty();
|
tbody.empty();
|
||||||
|
|
||||||
logs.forEach(function(log) {
|
response.logs.forEach(function(log) {
|
||||||
const row = $('<tr>');
|
const row = $('<tr>');
|
||||||
if (!log.name) {
|
if (!log.name) {
|
||||||
row.addClass('empty-name');
|
row.addClass('empty-name');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user