feat: 对话结构修改

This commit is contained in:
2026-03-13 14:37:16 +08:00
parent 2f094ab332
commit 5a4683b6c6
2 changed files with 27 additions and 24 deletions

View File

@@ -232,7 +232,7 @@
for (let event of events) {
if (!event.trim()) continue
// debugger
// 过滤掉 id: 等字段,只取 data:
let isNodeIdEvent = false
@@ -249,7 +249,8 @@
flag = false
break
}
if (event.includes('todo') || event.includes('webAddress')) {
// TODO: 暂时不处理webAddress
if (event.includes('todo')) {
break
}
let hasSketch = false
@@ -262,7 +263,7 @@
.filter((line) => line.startsWith('data:'))
.map((line) => line.replace(/^data:\s*/, '').trim())
.filter((content) => content.startsWith('{') || content.startsWith('['))
// console.log('dataLInes', dataLines)
console.log('dataLInes', dataLines)
if (isNodeIdEvent) {
params.versionID = dataLines[0]
projectStore.setProject({ nodeId: dataLines[0] })