|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
handleOn(file) {
|
|
|
// const isJPG = (file.type === 'image/jpeg' || file.type === 'image/JPEG' || file.type === 'image/png' || file.type === 'image/PNG' || file.type === 'image/cr2' || file.type === 'image/CR2');
|
|
|
var allName = file.name.split('.')
|
|
|
- var lastName = position[allName.length - 1]
|
|
|
+ var lastName = allName[allName.length - 1]
|
|
|
|
|
|
// const isJPG = (file.type === '' || file.type === 'image/jpeg' || file.type === 'image/JPEG' || file.type === 'image/png' || file.type === 'image/PNG' || file.type === 'image/cr2' || file.type === 'image/CR2');
|
|
|
const isJPG = (lastName === 'jpeg' || lastName === 'GPEG' || lastName === 'jpg' || lastName === 'JPG' || lastName === 'png' || lastName === 'PNG' || lastName === 'cr2' || lastName === 'CR2')
|