Browse Source

规则修改

wolyshaw 2 years ago
parent
commit
cadd08e5f6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/accompaniment/modals/form.vue

+ 2 - 1
src/views/accompaniment/modals/form.vue

@@ -969,7 +969,8 @@ export function getGradualLengthByXml(xml) {
     }
 
     const isKeyWork = keys.find(k => {
-      return textContent && (k.startsWith(textContent) || textContent?.startsWith(k))
+      const ks = k.split(' ')
+      return textContent && ks.includes(textContent)
     })
     if (
       ele.type === "metronome" ||