|
@@ -52,7 +52,7 @@ export default {
|
|
|
this.fileList = []
|
|
|
this.files.map(file => {
|
|
|
let fileName = file.substring(file.lastIndexOf('/') + 1)
|
|
|
- fileName = fileName.substring(0, fileName.indexOf('_')) + fileName.substring(fileName.lastIndexOf('.'))
|
|
|
+ fileName = fileName.substring(0, fileName.lastIndexOf('_', fileName.lastIndexOf('_') - 1)) + fileName.substring(fileName.lastIndexOf('.'))
|
|
|
this.fileList.push({ name: fileName, url: file })
|
|
|
})
|
|
|
}
|