fix: adjust loading state delay and clean up Activity component template

This commit is contained in:
2025-09-02 18:49:42 +02:00
parent 204ded71e5
commit 82b10ebc4b
3 changed files with 73 additions and 67 deletions

View File

@@ -13,7 +13,7 @@ onMounted(() => {
function nextState() {
index++
if (index < props.fetchStates.length) {
const delay = Math.random() * 3000 + 500
const delay = Math.random() * 1050 + 400
setTimeout(() => {
currentState.value = props.fetchStates[index]
nextState()
@@ -27,7 +27,6 @@ onMounted(() => {
nextState()
}
else {
// If only one state, call setLoadingState immediately
setLoadingState(props.messageId, ChatState.SENT)
}
})