Quellcode durchsuchen

Merge branch 'iteration-20240801' into jenkins

lex vor 10 Monaten
Ursprung
Commit
5216eb2998
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 1 1
      public/version.json
  2. 4 4
      src/views/content-information/useSpeak.ts

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1724032584818}
+{ "version": 1724032584818 }

+ 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 =
             (