This commit is contained in:
HuangHai
2026-01-21 09:59:09 +08:00
parent 2fda6f0dcf
commit 0f4435b51c
9 changed files with 158 additions and 79 deletions

View File

@@ -45,7 +45,7 @@
<div v-if="summaryLoading && !summaryText" style="text-align: center; padding: 20px; color: #6b7280;">
<p>⚡ AI正在阅读您的知识库并提炼精华,请稍候...</p>
</div>
<div class="markdown-body" v-html="renderedSummary" style="font-size: 15px; line-height: 1.8; color: #1f2937;"></div>
<div class="markdown-body" v-html="renderedSummary"></div>
<span v-if="summaryLoading && summaryText" class="cursor-blink">|</span>
</div>
<template #footer>
@@ -164,9 +164,41 @@
<script src="js/element-plus.zh-cn.min.js"></script>
<script src="js/axios.min.js"></script>
<!-- Markdown & LaTeX Support -->
<link rel="stylesheet" href="https://gcore.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<script src="https://gcore.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
<script src="https://gcore.jsdelivr.net/npm/marked@12.0.0/lib/marked.umd.js"></script>
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@5.5.1/github-markdown-dark.css">
<link rel="stylesheet" href="https://unpkg.com/katex@0.16.9/dist/katex.min.css">
<script src="https://unpkg.com/katex@0.16.9/dist/katex.min.js"></script>
<script src="https://unpkg.com/marked@12.0.0/lib/marked.umd.js"></script>
<style>
/* 适配对话框中的 Markdown 样式 */
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 15px;
background-color: transparent !important;
color: #cbd5e1 !important;
}
.el-dialog {
background-color: #1e293b !important;
border: 1px solid #334155;
}
.el-dialog__title {
color: #f1f5f9 !important;
}
.el-dialog__body {
color: #cbd5e1 !important;
}
.cursor-blink {
color: #3b82f6;
font-weight: bold;
animation: blink 1s step-end infinite;
}
@keyframes blink {
from, to { opacity: 1; }
50% { opacity: 0; }
}
</style>
<script src="js/douyin.js"></script>
</body>
</html>