Browse Source

svg预览修复

pull/41/MERGE
陈精华 2 years ago
parent
commit
aa66173625
No known key found for this signature in database
GPG Key ID: 30BDC970902B755D
  1. 23
      server/src/main/resources/web/svg.ftl

23
server/src/main/resources/web/svg.ftl

@ -1,17 +1,18 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html> <html>
<head> <head>
<title>${file.name}文件预览</title> <title>${file.name}文件预览</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<#include "*/commonHeader.ftl"> <#include "*/commonHeader.ftl">
<script src="js/svg-pan-zoom.js"></script> <script src="js/jquery-3.6.1.min.js" type="text/javascript"></script>
<script src="js/base64.min.js"></script> <script src="js/svg-pan-zoom.js"></script>
<#if currentUrl?contains("http://") || currentUrl?contains("https://") || currentUrl?contains("ftp://")> <script src="js/base64.min.js"></script>
<#assign finalUrl="${currentUrl}"> <#if currentUrl?contains("http://") || currentUrl?contains("https://") || currentUrl?contains("ftp://")>
<#else> <#assign finalUrl="${currentUrl}">
<#assign finalUrl="${baseUrl}${currentUrl}"> <#else>
</#if> <#assign finalUrl="${baseUrl}${currentUrl}">
</#if>
</head> </head>
<body> <body>
<div id="container"> <div id="container">

Loading…
Cancel
Save