feat: add loading when process mails (#364)

This commit is contained in:
Dream Hunter
2024-07-27 22:30:38 +08:00
committed by GitHub
parent 5faae8796d
commit b57d46244a
3 changed files with 11 additions and 0 deletions
+4
View File
@@ -26,12 +26,16 @@ const fetchMailData = async () => {
mailId: route.query.mail_id
})
});
loading.value = true;
return await processItem(res);
}
catch (error) {
console.error(error);
return {};
}
finally {
loading.value = false;
}
};
onMounted(async () => {