jinx 2 年 前
コミット
b60208dd08
1 ファイル変更6 行追加2 行削除
  1. 6 2
      src/components/Controls/Panel/Guide.vue

+ 6 - 2
src/components/Controls/Panel/Guide.vue

@@ -191,6 +191,7 @@ const hanlderTour = async () => {
   player.on('play', (data) => {
     progressNum.value = 0;
     musicPlayer.pause(true);
+
     // if (tours.value.length > 1) {
     //     let time = getPartTime(data.partId)
     //     hanlderTourPartPlay(time)
@@ -199,7 +200,8 @@ const hanlderTour = async () => {
   player.on('pause', (tours) => {
     // console.log('pause', player);
     musicPlayer.resume();
-
+    currProgress = 0;
+    currFrameProgress = 0;
     progressNum.value = 0;
     cancelTimer();
     store.commit('tour/setData', { isPlay: false });
@@ -207,6 +209,8 @@ const hanlderTour = async () => {
   player.on('end', (tours) => {
     musicPlayer.resume();
     progressNum.value = 100;
+    currProgress = 0;
+    currFrameProgress = 0;
     store.commit('tour/setData', { isPlay: false });
     cancelTimer();
   });
@@ -267,7 +271,7 @@ const hanlderTour = async () => {
       }
       // currProgress = data.progress / FrameLength;
 
-      // console.log(currProgress);
+      // console.log(currFrameProgress);
 
       if (currProgress >= 100) {
         currProgress = 100;