This commit is contained in:
parent
bfe5bf65ef
commit
776c619013
|
|
@ -337,7 +337,7 @@ function exeCommandCopyText(text) {
|
||||||
// 预览文件
|
// 预览文件
|
||||||
function viewFile(obj) {
|
function viewFile(obj) {
|
||||||
let fileName = obj.fileName.toLowerCase();
|
let fileName = obj.fileName.toLowerCase();
|
||||||
if (fileName.indexOf('png') || fileName.indexOf('jpg') || fileName.indexOf('jpeg')) {
|
if (fileName.indexOf('png') > -1 || fileName.indexOf('jpg') > -1 || fileName.indexOf('jpeg')> -1 ) {
|
||||||
layer.photos({
|
layer.photos({
|
||||||
shade: 0.5,
|
shade: 0.5,
|
||||||
photos: {
|
photos: {
|
||||||
|
|
@ -354,6 +354,7 @@ function viewFile(obj) {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 调用公司的预览文件的服务
|
// 调用公司的预览文件的服务
|
||||||
|
commonViewFile(obj.fileUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue