wuheng 1 year ago
parent
commit
50685d9c36

+ 2 - 0
src/components/View/pdfPreview.vue

@@ -17,6 +17,8 @@ import { reactive, onMounted, computed } from 'vue';
 import VuePdfEmbed from 'vue-pdf-embed';
 import { createLoadingTask } from 'vue3-pdfjs';
 
+defineOptions({ name: 'PdfPreview' });
+
 const props = defineProps({
   pdfUrl: {
     type: String,

+ 1 - 1
src/views/archives/students/component/pdfView.vue

@@ -5,7 +5,7 @@
 </template>
 <script setup lang="ts">
 import { watch, onMounted } from 'vue';
-import PdfPreview from '../../../../components/view/pdfPreview.vue';
+import PdfPreview from '@/components/view/pdfPreview.vue';
 
 const props = defineProps({
   url: {