From 387bdba8d1e9be12081280b550f4ed1ccc407a4a Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 25 六月 2024 10:28:47 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/sportsAndHealth/css/default.less |   15 +++++++++++++++
 src/components/pdfview/index.vue           |    4 +---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/books/sportsAndHealth/css/default.less b/src/books/sportsAndHealth/css/default.less
index 61eedbb..a31699e 100644
--- a/src/books/sportsAndHealth/css/default.less
+++ b/src/books/sportsAndHealth/css/default.less
@@ -1936,6 +1936,21 @@
   height: 90vh;
 }
 
+
+@media screen and (max-width:1024px) {
+  .pdfModal {
+    width: 100%;
+    height: 80vh;
+  }
+
+  .custom-dialog {
+    .el-dialog {
+      width: 90vw !important;
+    }
+  }
+}
+
+
 @media screen and (max-width:800px) {
   .pdfModal {
     width: 100%;
diff --git a/src/components/pdfview/index.vue b/src/components/pdfview/index.vue
index a7405cb..74fe752 100644
--- a/src/components/pdfview/index.vue
+++ b/src/components/pdfview/index.vue
@@ -81,9 +81,7 @@
       let ele = document.getElementById("imageParent");
       this.viewerCon = new Viewer(ele, {
         inline: false,
-        container: this.container
-          ? this.container.querySelector("#app")
-          : "body",
+        container: "body",
         navbar: true, // 鏄剧ず瀵艰埅鏍�
         toolbar: true, // 鏄剧ず宸ュ叿鏍�
         title: true, // 鏄剧ず鏍囬

--
Gitblit v1.9.1