diff --git a/src/views/home/agent/components/Agent.vue b/src/views/home/agent/components/Agent.vue
index 6abc4a2..2969365 100644
--- a/src/views/home/agent/components/Agent.vue
+++ b/src/views/home/agent/components/Agent.vue
@@ -454,7 +454,8 @@
const jsonData = JSON.parse(jsonText)
// console.log('jsonData', jsonData)
if (jsonData.webAddress) {
- // aiMessage.webAddress = JSON.parse(jsonData.webAddress)
+
+ aiMessage.webAddress = JSON.parse(jsonData.webAddress)
// contentBody += ``
// aiMessage.loading = false
hasUrlEvent = true
diff --git a/src/views/home/agent/components/Preview.vue b/src/views/home/agent/components/Preview.vue
index 43bb673..448f51e 100644
--- a/src/views/home/agent/components/Preview.vue
+++ b/src/views/home/agent/components/Preview.vue
@@ -2,6 +2,7 @@
@@ -136,7 +137,10 @@
// 当 type 为 sketch 时,自动滚动到最底部
if (props.type === 'sketch') {
nextTick(() => {
- containerRef.value?.scrollTo({ top: containerRef.value.scrollHeight, behavior: 'smooth' })
+ containerRef.value?.scrollTo({
+ top: containerRef.value.scrollHeight,
+ behavior: 'smooth'
+ })
})
}
}
@@ -194,9 +198,13 @@
markdownContent.value = content
}
+ const urlLoading = ref(false)
const setUrls = async (list: string[]) => {
reportType.value = 'urls'
+ urlList.value = []
+ urlLoading.value = true
const res = await fetchUrlTitle(list)
+ urlLoading.value = false
urlList.value = res
}
// watch(