From 50fb586e6fefc8b62a375763b729e3618195bc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Fri, 26 Apr 2019 14:24:49 +0800 Subject: [PATCH] =?UTF-8?q?office=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=A4=A7=E5=9B=BE=E6=96=B0=E5=BC=80=E7=AA=97?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jodconverter-web/src/main/resources/web/officePicture.ftl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jodconverter-web/src/main/resources/web/officePicture.ftl b/jodconverter-web/src/main/resources/web/officePicture.ftl index b553c971..75384eec 100644 --- a/jodconverter-web/src/main/resources/web/officePicture.ftl +++ b/jodconverter-web/src/main/resources/web/officePicture.ftl @@ -33,7 +33,11 @@ } else { url = url + "&officePreviewType="+previewType; } - window.location.href=url; + if ('allImages' == previewType) { + window.open(url) + } else { + window.location.href = url; + } }