feat: webaddress显示修改
This commit is contained in:
@@ -348,7 +348,7 @@
|
||||
|
||||
let hasSketchEvent = false
|
||||
let hasReportEvent = false
|
||||
|
||||
let hasUrlEvent = false
|
||||
try {
|
||||
let flag = true
|
||||
while (flag) {
|
||||
@@ -360,6 +360,9 @@
|
||||
if (hasReportEvent) {
|
||||
aiMessage.text += `<slot slot-name="card" title="Report" content="Report"></slot>`
|
||||
}
|
||||
if (hasUrlEvent) {
|
||||
aiMessage.text += `<slot slot-name="url"></slot>`
|
||||
}
|
||||
|
||||
aiMessage.streaming = false
|
||||
aiMessage.loading = false
|
||||
@@ -451,8 +454,10 @@
|
||||
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.webAddress = JSON.parse(jsonData.webAddress)
|
||||
// contentBody += `<slot slot-name="url"></slot>`
|
||||
// aiMessage.loading = false
|
||||
hasUrlEvent = true
|
||||
}
|
||||
if (jsonData.title) {
|
||||
if (aiMessage.sessionId === projectStore.state.id) {
|
||||
|
||||
Reference in New Issue
Block a user