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,