This commit is contained in:
parent
f057320625
commit
d7ecb2d547
|
@ -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>
|
Loading…
Reference in New Issue