Skip to content

Commit

Permalink
fix: 隐藏pdf侧边栏
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanqb committed Mar 29, 2024
1 parent 23ee566 commit 3e063ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@
<main ref="mdRender" class="mdRender" v-html="mdDoc" v-if="renderType=='md'" @click="closeSidebar">
</main>
<main id="iframe-container" v-else>
<iframe v-if="renderType=='pdf'" :src="'dependency/pdfjs/web/viewer.html?file='+pdfSrc"
<iframe v-if="renderType=='pdf'"
:src="'dependency/pdfjs/web/viewer.html?file='+pdfSrc+'#pagemode=none'"
onload="resizeIframe(this)"></iframe>
<iframe v-if="renderType=='html'" :srcdoc="htmlSrcDoc" frameborder="0" scrolling="no"
ref="htmlIframe" onload="resizeIframe(this)"></iframe>
Expand Down

0 comments on commit 3e063ef

Please sign in to comment.