Explorar o código

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

zhangxc %!s(int64=5) %!d(string=hai) anos
pai
achega
3e67daba80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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