Ver Fonte

匹配完整的关键词

liushengqiang há 2 anos atrás
pai
commit
48e70985fe
1 ficheiros alterados com 1 adições e 0 exclusões
  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)
     })