feat: 接收到webaddress时自动展开
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user