|
@@ -11,7 +11,7 @@
|
|
|
<h4>支持jpg, png, bmp, pdf等文件格式</h4>
|
|
|
</el-row>
|
|
|
<div class="common-layout">
|
|
|
- <el-upload class="upload-demo" drag action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15" :before-upload="beforeUpload" multiple>
|
|
|
+ <el-upload class="upload-demo" drag :before-upload="beforeUpload" multiple>
|
|
|
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
|
|
|
<div class="el-upload__text">
|
|
|
Drop file here or <em>click to upload</em>
|
|
@@ -134,7 +134,7 @@ function getPdfImage(index: number) {
|
|
|
loadingTask.promise.then((pdf: any) => {
|
|
|
state.numPages = pdf.numPages;
|
|
|
pdf.getPage(index).then((page: any) => {
|
|
|
- const viewport = page.getViewport({ scale: 4.0 })
|
|
|
+ const viewport = page.getViewport({ scale: 1.0 })
|
|
|
img_canvas.value.height = viewport.height;
|
|
|
img_canvas.value.width = viewport.width;
|
|
|
canvas.value.height = viewport.height;
|