This commit is contained in:
zhangxuelin 2024-07-29 10:10:39 +08:00
parent f057320625
commit d7ecb2d547
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ import { ref, onMounted, watch, reactive } from 'vue'
import * as pdfjsLib from 'pdfjs-dist/legacy/build/pdf'
pdfjsLib.GlobalWorkerOptions.workerSrc = '/lib/build/pdf.worker.mjs'
import pdfCanvas from '@/components/pdf/index.vue'
const { ipcRenderer } = window.electron || {}
const { ipcRenderer } = require('electron')
//
const pdfObj = reactive({
numberOfPdf: 2, //
@ -125,4 +125,4 @@ onMounted(async () => {})
}
}
}
</style>
</style>