|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div style="height: 900px">
|
|
<div style="height: 900px">
|
|
|
- <div class="mb-4">
|
|
|
|
|
|
|
+ <div v-if="!showPdf">渲染pdf失败</div>
|
|
|
|
|
+ <div class="mb-4" v-if="showPdf">
|
|
|
<a-button type="primary" @click="downPdf">下载讲义</a-button>
|
|
<a-button type="primary" @click="downPdf">下载讲义</a-button>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="!showPdf">渲染pdf失败</div>
|
|
|
|
|
<vue-office-pdf
|
|
<vue-office-pdf
|
|
|
:src="props.itemObj.url"
|
|
:src="props.itemObj.url"
|
|
|
style="width: 100%; height: 100%"
|
|
style="width: 100%; height: 100%"
|