Commit 5b9b014e by 宋祥

Merge branch 'dev' of http://129.211.46.84:8800/platform/hg-smart into master-dc

parents 59fe56f2 e8ed80a2
...@@ -61,12 +61,12 @@ function previewFile(docId, docType, docName) { ...@@ -61,12 +61,12 @@ function previewFile(docId, docType, docName) {
$("#descDiv").css('display', 'none'); $("#descDiv").css('display', 'none');
if (isXml(docType)) { if (isXml(docType)) {
previewXml(docId); previewXml(docId);
} else if (isExcel(docType)) {
previewExcel(docId);
} else if (true) { } else if (true) {
previewOnline(docId, docName); previewOnline(docId, docName);
} else if (isText(docType)) { } else if (isText(docType)) {
previewText(docId); previewText(docId);
} else if (isExcel(docType)) {
previewExcel(docId);
} else if (isWord(docType)) { } else if (isWord(docType)) {
previewDocx(docId); previewDocx(docId);
} else if (isImage(docType)) { } else if (isImage(docType)) {
...@@ -167,7 +167,7 @@ function isExcel(docType) { ...@@ -167,7 +167,7 @@ function isExcel(docType) {
if (isBlank(docType)) { if (isBlank(docType)) {
return false; return false;
} }
const extensions = ['xls', 'xlsx']; const extensions = ['xls'];
return extensions.includes(docType.toLowerCase()); return extensions.includes(docType.toLowerCase());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment