From 747fcac5a9e38c81f068c01bcc7cffb6ae2db7f7 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期四, 16 七月 2026 19:40:27 +0800
Subject: [PATCH] 组件源码使用的是具名导出 逻辑是export const VueOfficeDocx = 组件实例 所以导入需要用大括号包一下导入
---
src/components/filePreview/index.vue | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/components/filePreview/index.vue b/src/components/filePreview/index.vue
index d8720c3..63fc5e4 100644
--- a/src/components/filePreview/index.vue
+++ b/src/components/filePreview/index.vue
@@ -54,7 +54,7 @@
<script setup>
import { ref, computed, getCurrentInstance, watch } from 'vue';
-import VueOfficeDocx from '@vue-office/docx';
+import { VueOfficeDocx } from '@vue-office/docx'
import '@vue-office/docx/lib/index.css';
import VueOfficeExcel from '@vue-office/excel';
import '@vue-office/excel/lib/index.css';
--
Gitblit v1.9.3