Commit 25a43a04 by 宋祥

1.XLS无法预览的问题

parent 6fab413e
...@@ -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