update gitignore and add comments
This commit is contained in:
1 parent
3d22e050f3
commit
fdbfb28ee8
3 files changed
+15
No files matched your search
@@ -25,6 +25,7 @@ const { t, locale } = useI18n();
|
||||
const renderMarkdown = (text: string) => {
|
||||
if (!text) return '';
|
||||
try {
|
||||
// 把 # 标题、代码块、[链接](url) 等 Markdown 解析成 HTML
|
||||
return marked.parse(text);
|
||||
} catch (e) {
|
||||
return text;
|
||||
@@ -628,6 +629,7 @@ const submitFeedback = async () => {
|
||||
v-if="msg.role === 'assistant' && ((msg.retriever_resources && msg.retriever_resources.length > 0) || (msg.attribution_parts && msg.attribution_parts.length > 0) || getMessageLinks(msg).length > 0)"
|
||||
class="mt-2 space-y-2"
|
||||
>
|
||||
<!-- 带有URL链接的源文件名称,支持预览 -->
|
||||
<div v-if="getMessageLinks(msg).length > 0" class="flex flex-wrap gap-2">
|
||||
<button
|
||||
v-for="(file, linkIndex) in getMessageLinks(msg)"
|
||||
|
||||
Reference in new issue
Block a user