diff --git a/README.cn.md b/README.cn.md index 8b3e4152..1a1360ce 100644 --- a/README.cn.md +++ b/README.cn.md @@ -196,6 +196,7 @@ pdf预览模式预览效果如下 6. tif后端异步转换优化 - 实现多线程异步转换 7. 视频后端异步转换优化 - 实现多线程异步转换 8. CAD后端异步转换优化 - 实现多线程异步转换 +9. 默认预览配置策略调整 - Office 预览默认切换为 PDF 模式,默认隐藏图片/PDF 模式切换按钮,且 PDF 预览默认展开缩略图侧栏。若升级后仍需保持旧的图片优先体验,请显式设置 `office.preview.type=image` 和 `office.preview.switch.disabled=false`。 #### > 2025年01月16日,v4.4.0 版本发布 : diff --git a/README.md b/README.md index 3ada09b9..dabb5f1d 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ URL:[https://file.kkview.cn](https://file.kkview.cn) 6. tif backend async conversion optimization - Implemented multi-threaded asynchronous conversion 7. Video backend async conversion optimization - Implemented multi-threaded asynchronous conversion 8. CAD backend async conversion optimization - Implemented multi-threaded asynchronous conversion +9. Default preview configuration strategy adjusted - Office preview now defaults to PDF mode, the mode switch is hidden by default, and PDF preview opens with the thumbnail sidebar visible. If you need the previous image-first behavior after upgrade, explicitly set `office.preview.type=image` and `office.preview.switch.disabled=false`. ### Version 4.4.0 (January 16, 2025) diff --git a/server/src/main/config/application.properties b/server/src/main/config/application.properties index 0423d607..40578894 100644 --- a/server/src/main/config/application.properties +++ b/server/src/main/config/application.properties @@ -96,11 +96,11 @@ office.documentopenpasswords = ${KK_OFFICE_DOCUMENTOPENPASSWORD:true} office.type.web = ${KK_OFFICE_TYPE_WEB:web} # Office文档预览类型 -# 支持动态配置,可选值:image/pdf +# 支持动态配置,可选值:image/pdf,默认使用pdf模式 office.preview.type = ${KK_OFFICE_PREVIEW_TYPE:pdf} -# 是否关闭Office预览模式切换开关,默认为false(允许切换) -# 设置为true时,用户无法在图片和PDF模式间切换 +# 是否关闭Office预览模式切换开关,默认为true(关闭切换) +# 设置为false时,用户可以在图片和PDF模式间切换 office.preview.switch.disabled = ${KK_OFFICE_PREVIEW_SWITCH_DISABLED:true} diff --git a/server/src/main/resources/web/main/record.ftl b/server/src/main/resources/web/main/record.ftl index 00c39895..93e42249 100644 --- a/server/src/main/resources/web/main/record.ftl +++ b/server/src/main/resources/web/main/record.ftl @@ -96,6 +96,7 @@
office.preview.type=image 与 office.preview.switch.disabled=false。