Browse Source

匹配完整的关键词

liushengqiang 2 years ago
parent
commit
48e70985fe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/views/accompaniment/modals/form.vue

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

@@ -1013,6 +1013,7 @@ export function getGradualLengthByXml(xml) {
     }
 
     const isKeyWork = keys.find(k => {
+      if (k === textContent) return true
       const ks = k.split(' ')
       return textContent && ks.includes(textContent)
     })