fix: 修复管理后台样式丢失 + CSP inline style 违规
- 评论管理页:创建 comments.css,controller 传递 ExtraCSS/ExtraJS,模板移除所有 inline style,JS 改用 CSS 类 - 修复 comments.js 加载顺序:通过 ExtraJS 在 common.js 之后加载,解决 api is not defined - base.html:SVG inline style 移至 common.css - dashboard/index.html:3 处 inline style 替换为 CSS 类 - audit/index.html:modal 移除冗余 style="display:none" - fund_logs/logs:label inline style 移至 energy.css - common.css 新增多个 CSS 规则 - energy.css 新增 .filter-bar label 规则
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
tbody.innerHTML = '';
|
||||
var items = d.data.items || [];
|
||||
if (items.length === 0) {
|
||||
tbody.innerHTML = '<tr><td colspan="6" style="text-align:center;padding:40px;color:#9ca3af">暂无评论</td></tr>';
|
||||
tbody.innerHTML = '<tr><td colspan="6" class="admin-table-empty">暂无评论</td></tr>';
|
||||
pagination.innerHTML = '';
|
||||
return;
|
||||
}
|
||||
@ -48,7 +48,7 @@
|
||||
}).catch(function() {
|
||||
loading.style.display = 'none';
|
||||
showToast('加载失败', 'error');
|
||||
tbody.innerHTML = '<tr><td colspan="6" style="text-align:center;padding:40px;color:#dc2626">加载失败</td></tr>';
|
||||
tbody.innerHTML = '<tr><td colspan="6" class="admin-table-error">加载失败</td></tr>';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user