mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
15 lines
264 B
JavaScript
15 lines
264 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)
|
|
}
|
|
}
|
|
}
|