fix: 手动重置异常的 loading

This commit is contained in:
ChenZhaoYu 2023-03-19 18:12:49 +08:00
parent d1c15f58c4
commit f1584b60e8
1 changed files with 7 additions and 0 deletions

View File

@ -43,9 +43,16 @@ const loading = ref<boolean>(false)
// PromptStore // PromptStore
const promptStore = usePromptStore() const promptStore = usePromptStore()
// 使storeToRefsstore // 使storeToRefsstore
const { promptList: promptTemplate } = storeToRefs<any>(promptStore) const { promptList: promptTemplate } = storeToRefs<any>(promptStore)
// loading
dataSources.value.forEach((item, index) => {
if (item.loading)
updateChatSome(+uuid, index, { loading: false })
})
function handleSubmit() { function handleSubmit() {
onConversation() onConversation()
} }