src/components/tool/file-preview.vue
@@ -4,7 +4,7 @@ <img :src="fileUrl" alt="Image Preview" /> </div> <div v-if="isPdf"> <object :data="fileUrl" type="application/pdf" width="100%" height="600px"> <object :data="fileUrl" type="application/pdf" width="100%" height="750px"> <p>您的浏览器不支持 PDF 预览。<a :href="fileUrl">下载 PDF 文件</a></p> </object> </div>