Update ConvertToTxtComponent.vue

修复pdf无法转换文字
This commit is contained in:
DBeidachazi 2025-03-01 22:06:52 +08:00 committed by GitHub
parent 3194799ff5
commit 6f9a1b4850
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>