Commit 93538224 authored by 黄奎's avatar 黄奎

页面修改

parent 7bf11b84
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
else { else {
fileArray.forEach(item => { fileArray.forEach(item => {
var obj = this.getIcon(item.fileName); var obj = this.getIcon(item.fileName);
console.log("obj",obj)
if (obj.fileType == 4) { if (obj.fileType == 4) {
html += this.audioIframeStr(item); html += this.audioIframeStr(item);
} else { } else {
...@@ -168,7 +168,8 @@ ...@@ -168,7 +168,8 @@
obj.dataType = ""; obj.dataType = "";
return obj; return obj;
} }
var type = fileName.split('.')[1]; var index = fileName.lastIndexOf('.');
var type = fileName.substr(index+1);
type = type.toLowerCase(); type = type.toLowerCase();
obj.dataType = type; obj.dataType = type;
if (type === 'video' || type === 'svideo') { if (type === 'video' || type === 'svideo') {
......
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