瀏覽代碼

简谱模式下的评测:备注截图

liushengqiang 2 年之前
父節點
當前提交
d4654ed808
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/view/selection/index.tsx

+ 1 - 1
src/view/selection/index.tsx

@@ -56,7 +56,7 @@ const calcNoteData = () => {
 			if (item.stave) {
 				if (item.stave?.attrs?.id) {
 					const staveEle = document.querySelector(`#${item.stave.attrs.id}`);
-					const list = [Array.from(staveEle?.querySelectorAll(".vf-clef") || []), Array.from(staveEle?.querySelectorAll(".vf-keysignature") || [])].flat();
+					const list = [Array.from(staveEle?.querySelectorAll(".vf-clef") || []), Array.from(staveEle?.querySelectorAll(".vf-keysignature") || []), Array.from(staveEle?.getElementsByTagName('text') || [])].flat();
 					try {
 						if (list.length) {
 							// console.log("🚀 ~ list:", list)