fixed a bug

This commit is contained in:
MasonLiu committed 2024-12-15 23:38:21 +08:00
1 parent 574fc326cd
commit 4661c90034
10 files changed
+4 -1123

No files matched your search

-1
View File
@@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">
<title>资讯推送Web端</title>
<link rel="shortcut icon" href="./favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 引入 Layui 的 CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-src/dist/css/layui.css">
-24
View File
@@ -25,29 +25,5 @@
<pre>{{ log_content }}</pre>
<div id="markdown-content" class="layui-card-body"></div>
</div>
<!-- 引入 Layui 的 JS -->
<script src="https://cdn.jsdelivr.net/npm/layui-src/dist/layui.js"></script>
<!-- <script>
layui.use(['layer'], function(){
var layer = layui.layer;
fetch('/get-log')
.then(response => response.json())
.then(data => {
if (data.content) {
const htmlContent = marked.parse(data.content);
document.getElementById('markdown-content').innerHTML = htmlContent;
} else {
document.getElementById('markdown-content').innerHTML = '<p>Error loading markdown.</p>';
}
})
.catch(error => {
console.error('Error fetching the markdown:', error);
document.getElementById('markdown-content').innerHTML = '<p>Failed to load markdown.</p>';
layer.msg('Failed to load markdown.', {icon: 5});
});
});
</script> -->
</body>
</html>
File renamed without changes.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB