fix(chat): 清理前端合并冲突
This commit is contained in:
1 parent
59ff2dd9c7
commit
19d4afea35
2 files changed
+1
-10
No files matched your search
@@ -5,12 +5,8 @@
|
||||
* 逻辑:由 ChatMessageList 按消息逐条挂载;合同审查结果卡自带边框,外层不再套 chat-msg-assistant 气泡以免双层框。
|
||||
*/
|
||||
<script setup lang="ts">
|
||||
<<<<<<< HEAD
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
=======
|
||||
import { computed, nextTick, onMounted, ref, watch } from 'vue';
|
||||
>>>>>>> e7ff6bc2 (fix(platform): 汇总知识库问答与图表展示修复)
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Check, Copy, Download, Edit2, Eye, LayoutGrid, MessageSquareText, RotateCw, X } from 'lucide-vue-next';
|
||||
import { useAuthStore } from '@/features/auth/stores/auth.store';
|
||||
import LeaveMessageBlock, { type LeaveMessageHandlers } from './LeaveMessageBlock.vue';
|
||||
|
||||
@@ -20,7 +20,6 @@ import {
|
||||
|
||||
marked.setOptions({ gfm: true, breaks: true });
|
||||
|
||||
<<<<<<< HEAD
|
||||
const tt = (key: string, params?: Record<string, unknown>) => String(i18n.global.t(key, params as any));
|
||||
|
||||
/** 内部规范表头键(兼容服务端中文列名);展示时再映射到 chat.assetColumns.* */
|
||||
@@ -56,8 +55,6 @@ function displayFixedAssetHeader(header: string): string {
|
||||
const key = FIXED_ASSET_HEADER_I18N_KEYS[header as keyof typeof FIXED_ASSET_HEADER_I18N_KEYS];
|
||||
return key ? tt(key) : header;
|
||||
}
|
||||
|
||||
=======
|
||||
/**
|
||||
* 用途:为聊天中的 Mermaid 代码块保留可识别标记,交由消息组件渲染为 SVG 图表。
|
||||
* 逻辑:仅处理明确标为 `mermaid` 的代码块;其余代码仍保持 marked 的默认安全展示,
|
||||
@@ -75,8 +72,6 @@ chatMarkdownRenderer.code = ({ text, lang }: { text: string; lang?: string | nul
|
||||
const languageClass = String(lang || '').trim().replace(/[^a-zA-Z0-9_-]/g, '');
|
||||
return `<pre><code${languageClass ? ` class="language-${languageClass}"` : ''}>${escaped}</code></pre>`;
|
||||
};
|
||||
|
||||
>>>>>>> e7ff6bc2 (fix(platform): 汇总知识库问答与图表展示修复)
|
||||
const INLINE_FILE_BLOCK_REGEX = /\[FILE_START\]([\s\S]*?)\[FILE_END\]/g;
|
||||
const INLINE_ATTACHMENT_HINT_REGEX = /^.*(?:如果您需要查看全部数据,请下载附件。?|请下载附件。?).*$/gim;
|
||||
|
||||
|
||||
Reference in new issue
Block a user