Browse Source

匹配完整的关键词

liushengqiang 2 năm trước cách đây
mục cha
commit
48e70985fe
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)
     })