feat: 接收到webaddress时自动展开

This commit is contained in:
2026-06-04 15:11:20 +08:00
parent c7ff047ac8
commit 0d865da77e
3 changed files with 146 additions and 7 deletions

View File

@@ -454,11 +454,12 @@
const jsonData = JSON.parse(jsonText)
// console.log('jsonData', jsonData)
if (jsonData.webAddress) {
aiMessage.webAddress = JSON.parse(jsonData.webAddress)
// contentBody += `<slot slot-name="url"></slot>`
// aiMessage.loading = false
const parsed = JSON.parse(jsonData.webAddress)
aiMessage.webAddress = parsed
hasUrlEvent = true
if (String(aiMessage.sessionId) === String(projectStore.state.id)) {
MyEvent.emit('openUrls', parsed)
}
}
if (jsonData.title) {
if (aiMessage.sessionId === projectStore.state.id) {