feat: webaddress显示修改
This commit is contained in:
@@ -348,7 +348,7 @@
|
|||||||
|
|
||||||
let hasSketchEvent = false
|
let hasSketchEvent = false
|
||||||
let hasReportEvent = false
|
let hasReportEvent = false
|
||||||
|
let hasUrlEvent = false
|
||||||
try {
|
try {
|
||||||
let flag = true
|
let flag = true
|
||||||
while (flag) {
|
while (flag) {
|
||||||
@@ -360,6 +360,9 @@
|
|||||||
if (hasReportEvent) {
|
if (hasReportEvent) {
|
||||||
aiMessage.text += `<slot slot-name="card" title="Report" content="Report"></slot>`
|
aiMessage.text += `<slot slot-name="card" title="Report" content="Report"></slot>`
|
||||||
}
|
}
|
||||||
|
if (hasUrlEvent) {
|
||||||
|
aiMessage.text += `<slot slot-name="url"></slot>`
|
||||||
|
}
|
||||||
|
|
||||||
aiMessage.streaming = false
|
aiMessage.streaming = false
|
||||||
aiMessage.loading = false
|
aiMessage.loading = false
|
||||||
@@ -451,8 +454,10 @@
|
|||||||
const jsonData = JSON.parse(jsonText)
|
const jsonData = JSON.parse(jsonText)
|
||||||
// console.log('jsonData', jsonData)
|
// console.log('jsonData', jsonData)
|
||||||
if (jsonData.webAddress) {
|
if (jsonData.webAddress) {
|
||||||
aiMessage.webAddress = JSON.parse(jsonData.webAddress)
|
// aiMessage.webAddress = JSON.parse(jsonData.webAddress)
|
||||||
contentBody += `<slot slot-name="url"></slot>`
|
// contentBody += `<slot slot-name="url"></slot>`
|
||||||
|
// aiMessage.loading = false
|
||||||
|
hasUrlEvent = true
|
||||||
}
|
}
|
||||||
if (jsonData.title) {
|
if (jsonData.title) {
|
||||||
if (aiMessage.sessionId === projectStore.state.id) {
|
if (aiMessage.sessionId === projectStore.state.id) {
|
||||||
@@ -688,7 +693,7 @@
|
|||||||
const setChatInfo = (info) => {
|
const setChatInfo = (info) => {
|
||||||
const initialData = agentStore.getInitialProjectData
|
const initialData = agentStore.getInitialProjectData
|
||||||
if (isGenerating.value || initialData) return
|
if (isGenerating.value || initialData) return
|
||||||
console.log('---',info)
|
console.log('---', info)
|
||||||
const data = info.conversation
|
const data = info.conversation
|
||||||
let project = info.project
|
let project = info.project
|
||||||
if (info.id) {
|
if (info.id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user