fix(AI):修复信息展示逻辑并添加调试日志-修复了 messageInfo 对象中 information 属性的赋值逻辑- 添加了调试日志,打印 text 变量和自定义标识符123-优化了代码结构,提高了可读性

This commit is contained in:
陈昱达
2025-08-11 16:50:40 +08:00
parent ff4069b131
commit e42eb1d9fd

View File

@@ -342,7 +342,7 @@ export default {
const information = /<information>([^<]*)(?:<\/information>)?/.exec(this.answerMap)
const text = /<text>([^<]*)(?:<\/text>)?/.exec(this.answerMap)
// console.log(this.answerMap);
console.log(text, 123)
this.messageInfo.information = information ? information[1].trim() : this.newMessage
this.messageInfo.is_complete = is_complete ? is_complete[1].trim() : 'false'
if (is_complete && is_complete[1] === 'true' && text && text[1].trim() === '') {