+
+
+ 理解问题
-
-
-
+
+
+
+
+
+
-
- 理解问题
+
+ 搜索项目
-
+
-
-
-
-
- 搜索项目
-
-
-
-
-
- 找到 {{ sourceCount }} 条来源
-
-
-
- 整理答案
-
+ 找到 {{ sourceCount }} 条来源
+
+
+
+ 整理答案
-
-
+
+
-
{{ item.ansLoading ? '回答中' : '回答' }}
@@ -92,7 +88,25 @@ const props = defineProps({
}
})
const emits = defineEmits(['regenerate'])
+const openCollapse = ref(true)
+function handleToggleCollapse () {
+ openCollapse.value = !openCollapse.value
+}
+function handleCollapse (state) {
+ openCollapse.value = state
+}
+watch(
+ () => props.item.ansLoading,
+ (value, oldValue) => {
+ if (oldValue === undefined) {
+ setTimeout(() => {
+ handleCollapse(false)
+ }, 500)
+ }
+ }
+)
function handleReGenerate () {
+ handleCollapse(true)
emits('regenerate', props.index)
}
function handleCopyMD () {