Browse Source

Excel加载预览异常修复

mork 2 tháng trước cách đây
mục cha
commit
2ad388b2f6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/components/filePreview/viewPreview.vue

+ 4 - 0
src/components/filePreview/viewPreview.vue

@@ -14,6 +14,10 @@
         <div class="page-content" v-if="isShow == 2">
             <vue-office-excel
                 :src="excelUrl"
+                :options="{
+                    xls: true,
+                    xlsx: true,
+                }"
                 @rendered="onRendered"
                 @error="onError"
                 />