feat: 图片生成结果支持返回 MD 格式 (closes #84)

This commit is contained in:
foxhui
2026-04-24 01:28:07 +08:00
Unverified
parent 26b8561144
commit ea6968353d
21 changed files with 146 additions and 116 deletions
+14 -1
View File
@@ -12,7 +12,8 @@ const formData = reactive({
keepaliveMode: 'comment',
logLevel: 'info',
queueBuffer: 2,
imageLimit: 5
imageLimit: 5,
imageMarkdown: false
});
onMounted(async () => {
@@ -146,6 +147,18 @@ const handleSave = async () => {
style="width: 100%" />
</div>
</a-col>
<!-- 图片生成结果使用 Markdown -->
<a-col :xs="24" :md="12">
<div style="margin-bottom: 8px;">
<div style="font-weight: 600; margin-bottom: 4px;">图片 Markdown 格式</div>
<div style="font-size: 12px; color: #8c8c8c; margin-bottom: 8px;">
开启后生图结果将使用 Markdown 语法返回图片内容<br>
开启此项需要客户端支持渲染 Markdown
</div>
<a-switch v-model:checked="formData.imageMarkdown" />
</div>
</a-col>
</a-row>
<!-- 保存按钮右下角 -->