mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
16 lines
265 B
JavaScript
16 lines
265 B
JavaScript
|
import { secondsToHis } from '../utils'
|
||
|
|
||
|
export default {
|
||
|
computed: {
|
||
|
length () {
|
||
|
return this.album.songs.reduce((acc, song) => {
|
||
|
return acc + song.length
|
||
|
}, 0)
|
||
|
},
|
||
|
|
||
|
fmtLength () {
|
||
|
return secondsToHis(this.length)
|
||
|
}
|
||
|
}
|
||
|
}
|