From 7797b4479d538de8e7b7152be477ee2065cd78fc Mon Sep 17 00:00:00 2001 From: bestlee Date: Tue, 13 Oct 2026 11:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=96=87=E4=BB=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9C=B0=E5=9D=80=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/previewFile/index.vue | 31 ++++++++++++++++------------ 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/components/previewFile/index.vue b/src/components/previewFile/index.vue index cde47ba..eac581b 100644 --- a/src/components/previewFile/index.vue +++ b/src/components/previewFile/index.vue @@ -5,6 +5,7 @@ import 'vue3-office-preview/lib/style.css' const props = defineProps(['previewFile',]) +const currentOrigin = window.location.origin; // 判断文件类型 const handleFileType = (type:string) => { if(type){ @@ -33,37 +34,41 @@ const handleFileType = (type:string) => {