diff --git a/frontend/src/utils/security.ts b/frontend/src/utils/security.ts index 76c5cd11..b1eab2f0 100644 --- a/frontend/src/utils/security.ts +++ b/frontend/src/utils/security.ts @@ -12,7 +12,7 @@ const DOMPurifyConfig = { 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'a', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', - 'div', 'span', 'figure', 'figcaption' + 'div', 'span', 'figure', 'figcaption', 'think' ], // 允许的属性 ALLOWED_ATTR: [ diff --git a/frontend/src/views/chat/components/deepThink.vue b/frontend/src/views/chat/components/deepThink.vue index 49e0f2b8..36bd149c 100644 --- a/frontend/src/views/chat/components/deepThink.vue +++ b/frontend/src/views/chat/components/deepThink.vue @@ -19,7 +19,7 @@