mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
15 lines
265 B
JavaScript
15 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)
|
|
}
|
|
}
|
|
}
|