Commit 25a43a04 by 宋祥

1.XLS无法预览的问题

parent 6fab413e
......@@ -61,12 +61,12 @@ function previewFile(docId, docType, docName) {
$("#descDiv").css('display', 'none');
if (isXml(docType)) {
previewXml(docId);
} else if (isExcel(docType)) {
previewExcel(docId);
} else if (true) {
previewOnline(docId, docName);
} else if (isText(docType)) {
previewText(docId);
} else if (isExcel(docType)) {
previewExcel(docId);
} else if (isWord(docType)) {
previewDocx(docId);
} else if (isImage(docType)) {
......@@ -167,7 +167,7 @@ function isExcel(docType) {
if (isBlank(docType)) {
return false;
}
const extensions = ['xls', 'xlsx'];
const extensions = ['xls'];
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