diff --git a/src/store/player.js b/src/store/player.js index 0674dd9..3b4cb68 100644 --- a/src/store/player.js +++ b/src/store/player.js @@ -103,3 +103,9 @@ export const player = { }, }, } + +setInterval(() => { + if (player.state.paused === false) { + store.dispatch('player/time') + } +}, 40000)