Merge pull request #43 from DBeidachazi/patch-1

Update ConvertToTxtComponent.vue
This commit is contained in:
Wenjie Zhang 2025-03-02 00:28:06 +08:00 committed by GitHub
commit c6428dc303
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ const convertPdfToText = async () => {
const response = await fetch('/api/tool/pdf2txt', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ file: file })
body: JSON.stringify(file.toString())
});
if (!response.ok) {
@ -180,4 +180,4 @@ const convertPdfToText = async () => {
}
}
}
</style>
</style>