Browse Source

Merge pull request #498 from baboon-king/master

fix: duplicate query param of tifPreviewType on url
pull/244/head
陈精华 1 year ago committed by GitHub
parent
commit
c559efcceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      server/src/main/resources/web/pdf.ftl

9
server/src/main/resources/web/pdf.ftl

@ -37,7 +37,14 @@
}
function goForImage() {
var url = window.location.href + "&tifPreviewType=jpg"
var url = window.location.href
if (url.indexOf("tifPreviewType=pdf") != -1) {
url = url.replace("tifPreviewType=pdf", "tifPreviewType=jpg");
} else {
url = url + "&tifPreviewType=jpg";
}
if (url.indexOf("officePreviewType=pdf") != -1) {
url = url.replace("officePreviewType=pdf", "officePreviewType=image");
} else {

Loading…
Cancel
Save