解决单据附件图片文件名带点号导致展示的问题
This commit is contained in:
@@ -312,7 +312,7 @@
|
||||
console.log(file)
|
||||
},
|
||||
handlePreview(file){
|
||||
let postfix = file.name.substring(file.name.indexOf('.'))
|
||||
let postfix = file.name.substring(file.name.lastIndexOf('.'))
|
||||
if(postfix === '.gif' || postfix === '.jpg' || postfix === '.jpeg' || postfix === '.png' ||
|
||||
postfix === '.GIF' || postfix === '.JPG' || postfix === '.JPEG' || postfix === '.PNG') {
|
||||
this.previewImage = file.url || file.thumbUrl;
|
||||
|
||||
Reference in New Issue
Block a user