Browse Source

静态知识检索值处理(2819)

zhangxc 5 năm trước cách đây
mục cha
commit
3e67daba80
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/js/staticSearch.js

+ 1 - 1
src/js/staticSearch.js

@@ -92,7 +92,7 @@ function getKnowledgeData(value) {
         }
     }
     post(config.getStaticKnowledge,{
-        inputStr: value,
+        inputStr: value.replace(/\\/g,'\\\\').replace(/%/g,'\\%').replace(/\_/g,'\\_'),
         types:medicalTypes
         }).then((res) => {
         const data = res.data