feat(portal):优化AI对话框宽度与消息展示

- 将AI对话框宽度从65%调整为800px- 修改初始欢迎消息格式,使用HTML标签替换Markdown语法-修复机器人消息显示逻辑,确保displayText正确赋值- 优化消息渲染流程,提升用户体验
This commit is contained in:
陈昱达
2025-10-14 15:43:13 +08:00
parent 3720b5667d
commit 0afd733f47
2 changed files with 7 additions and 5 deletions

View File

@@ -128,6 +128,8 @@ export default {
if (this.messageData.isBot && !this.messageData.typing) {
this.startTyping(newVal); // 启动打字机效果
this.displayText = newVal || ''
} else {
this.displayText = this.md.render(newVal);
this.$nextTick(this.renderMermaid); // 直接渲染 Mermaid