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) => {