diff --git a/chat_web_front/src/views/reading/index.vue b/chat_web_front/src/views/reading/index.vue index 612851a..540543c 100644 --- a/chat_web_front/src/views/reading/index.vue +++ b/chat_web_front/src/views/reading/index.vue @@ -437,8 +437,9 @@ const loadPdfFile = async () => { if (!selectedFile.value) return; docHtml.value = ''; try { - const blob = await downloadFile({ fileId: selectedFile.value.fileId }); - const arrayBuffer = await (blob as Blob).arrayBuffer(); + const resp = await downloadFile({ fileId: selectedFile.value.fileId }); + const blob = new Blob([resp]); + const arrayBuffer = await blob.arrayBuffer(); pdfData.value = arrayBuffer; } catch (e: any) { pdfData.value = null;