提交 58c6875e 编写于 作者: D DebugIsFalse

fix: 最后一个线条显示隐藏问题

上级 16f93e9c
......@@ -23,7 +23,7 @@
:is-last-index="false"
:index="index"
/>
<UDivider class="pt-3 pb-2" />
<UDivider v-if="data.length !== index + 1 || askingData.question" class="pt-3 pb-2" />
</template>
<div class="grid" v-if="data.length > 0 && askingData.question">
<h2 class="text-3xl" :id="data.length + 1">{{ askingData.question }}</h2>
......@@ -238,8 +238,6 @@ const handleMessage = (event) => {
asking.value = false
resetAnsLoading()
handleStopGenerate()
// 重新生成相关问题
fetchLinkedQuestion(askingData.value.question)
return
}
handleFormFetchData(event.data)
......@@ -299,6 +297,8 @@ const generateFetchData = (query) => {
onerror: handleError,
controller: aiChatController
})
// 重新生成相关问题
fetchLinkedQuestion(query)
}
const refHeader = ref(null)
async function handleUpdateOpenState(url) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册