fix: 手动重置异常的 loading

main
ChenZhaoYu 2 years ago
parent d1c15f58c4
commit f1584b60e8

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

Loading…
Cancel
Save