lex 10 months ago
parent
commit
a06de15d31
2 changed files with 5 additions and 5 deletions
  1. 1 1
      public/version.json
  2. 4 4
      src/views/content-information/useSpeak.ts

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1722495639752}
+{"version":1724038393731}

+ 4 - 4
src/views/content-information/useSpeak.ts

@@ -20,7 +20,7 @@ export const useSpeak = () => {
     node.childNodes.forEach((child: any) => {
       if (child.nodeType === Node.TEXT_NODE) {
         // 按标点符号分割文本
-        const sentences = child.textContent.split(/(?<=[,,;;。.])\s*/);
+        const sentences = child.textContent.split(/(?<=[,,;;。])\s*/);
         sentences.forEach((sentence: any) => {
           if (sentence.trim()) {
             const customTag = document.createElement('label');
@@ -168,9 +168,9 @@ export const useSpeak = () => {
           console.log(
             false,
             parentRect?.bottom -
-              bottom +
-              (showDomRect.height + fHeight / 2) +
-              musicContent?.scrollTop
+            bottom +
+            (showDomRect.height + fHeight / 2) +
+            musicContent?.scrollTop
           );
           showDom.style.top =
             (