修复压缩包里文件再次预览失败的bug
This commit is contained in:
parent
486c09b24a
commit
2910544c26
|
@ -1,5 +1,6 @@
|
|||
[#ftl]
|
||||
[#-- @implicitly included --]
|
||||
[#-- @ftlvariable name="fileTree" type="java.lang.String" --]
|
||||
[#-- @ftlvariable name="baseUrl" type="java.lang.String" --]
|
||||
[#-- @ftlvariable name="imgUrls" type="String" --]
|
||||
[#-- @ftlvariable name="textData" type="java.lang.String" --]
|
||||
|
|
|
@ -23,9 +23,6 @@
|
|||
h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;}
|
||||
a {color:#3C6E31;text-decoration: underline;}
|
||||
a:hover {background-color:#3C6E31;color:white;}
|
||||
input.radio {margin: 0 2px 0 8px;}
|
||||
input.radio.first {margin-left:0;}
|
||||
input.empty {color: lightgray;}
|
||||
code {color: #2f332a;}
|
||||
div.zTreeDemoBackground {width:600px;text-align:center;margin: 0 auto;background-color: #ffffff;}
|
||||
</style>
|
||||
|
@ -41,7 +38,7 @@
|
|||
<script type="text/javascript" src="js/base64.min.js" ></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var data = JSON.parse('${fileTree}');
|
||||
const data = JSON.parse('${fileTree}');
|
||||
var baseUrl = "${baseUrl}";
|
||||
var setting = {
|
||||
view: {
|
||||
|
@ -74,7 +71,7 @@
|
|||
} else {
|
||||
fulls += ",resizable"; // 对于不支持screen属性的浏览器,可以手工进行最大化。 manually
|
||||
}
|
||||
var previewUrl = baseUrl + treeNode.fileName +"&fileKey="+ treeNode.fileKey;
|
||||
var previewUrl = baseUrl + treeNode.fileName +"?fileKey="+ treeNode.fileKey;
|
||||
window.open("onlinePreview?url=" + encodeURIComponent(Base64.encode(previewUrl)), "_blank",fulls);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue