videoPlay.js 467 B

12345678910111213141516171819202122
  1. // 全局音频背景播放状态管理模块
  2. const videoModules = {
  3. namespaced: true,
  4. state: {
  5. playVideoId: 0,
  6. playVideoActId: 0,
  7. palyCurrentTime: 0,
  8. },
  9. mutations: {
  10. playVideo(state, payload) {
  11. state.playVideoId = payload;
  12. },
  13. playVideoActivity(state, payload) {
  14. state.playVideoActId = payload;
  15. },
  16. palyTimeUpdate(state, payload) {
  17. state.palyCurrentTime = payload;
  18. },
  19. },
  20. };
  21. export default videoModules;