浏览代码

修复回车问题

xiaochan 3 月之前
父节点
当前提交
436887e6d9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/components/nursing-dashboard/RenderTable.vue

+ 4 - 0
src/components/nursing-dashboard/RenderTable.vue

@@ -93,6 +93,10 @@ async function replace(query = true) {
       const totalCharacters = td.textContent.length;
       const totalDuration = totalCharacters * timePerCharacter;
 
+      marqueeDiv.querySelectorAll("br")?.forEach?.(item => {
+        item.remove();
+      });
+
       marqueeDiv.style.setProperty(
         "--translate-second",
         `${totalDuration * 0.05}s`