From 05935c29e1869aa35319c9bc94109c9c04a81c52 Mon Sep 17 00:00:00 2001 From: "1192247166@qq.com" Date: Wed, 26 Jan 2022 11:38:12 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=B7=A6=E8=BE=B9=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E6=98=BE=E7=A4=BA=E6=80=BB=E9=A1=B5=E7=A0=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=BA0=202=E3=80=81=E4=BF=AE=E6=94=B9=E5=B7=A6?= =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=88=86=E8=BE=A8=E7=8E=87=E8=BF=87=E9=AB=98?= =?UTF-8?q?=EF=BC=8C=E6=98=BE=E7=A4=BA=E5=9B=BE=E7=89=87=E8=BF=87=E5=A4=A7?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main/resources/static/pptx/ppt.js | 1 + server/src/main/resources/web/ppt.ftl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/resources/static/pptx/ppt.js b/server/src/main/resources/static/pptx/ppt.js index 454d2456..c83f1e57 100644 --- a/server/src/main/resources/static/pptx/ppt.js +++ b/server/src/main/resources/static/pptx/ppt.js @@ -154,6 +154,7 @@ function resetContent() { var thumbnailWidth = $('.thumbnail:first').width(); var thumbnailHeight = thumbnailWidth * ratio; $('.thumbnail').height(thumbnailHeight); + $('.thumbnail>img').width(thumbnailWidth).height(thumbnailHeight); var slideImgContainerWidth = $('.slide-img-container:first').width(); var slideImgContainerHeight = slideImgContainerWidth * ratio; diff --git a/server/src/main/resources/web/ppt.ftl b/server/src/main/resources/web/ppt.ftl index 29d0b08d..f88ff5e9 100644 --- a/server/src/main/resources/web/ppt.ftl +++ b/server/src/main/resources/web/ppt.ftl @@ -2,7 +2,7 @@ { "code": 1, "name": "PPT预览", - "totalSize": 0, + "totalSize": ${imgurls?size}, "curPage": 1, "totalPage": 1, "pageSize": 10,