Procházet zdrojové kódy

修改语音矩阵问题

dusenyao před 3 roky
rodič
revize
a37124f72b
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5 4
      src/components/Adult/preview/VoiceMatrix.vue

+ 5 - 4
src/components/Adult/preview/VoiceMatrix.vue

@@ -341,7 +341,7 @@ export default {
       if (type.length > 0 && index >= 0 && type === "row") {
         this.curQue.voiceMatrix.matrix[index].forEach(item => {
           if (
-            item.type !== "connection" &&
+            item.type === "SentenceSegwordChs" ||
             (item.type === "text" && item.text.length > 0)
           ) {
             this.lrcArray.push(item.lrc_data);
@@ -353,11 +353,12 @@ export default {
 
       if (type.length > 0 && index >= 0 && type === "column") {
         this.curQue.voiceMatrix.matrix.forEach(item => {
+          let data = item[index];
           if (
-            item.type !== "connection" &&
-            (item.type === "text" && item.text.length > 0)
+            data.type === "SentenceSegwordChs" ||
+            (data.type === "text" && data.text.length > 0)
           ) {
-            this.lrcArray.push(item[index].lrc_data);
+            this.lrcArray.push(data.lrc_data);
           }
         });
         if (this.lrcArray.length > 0) this.lrcPlay(this.lrcArray[0], 0);