Commit 93538224 authored by 黄奎's avatar 黄奎

页面修改

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