Explorar el Código

编码分词接口入参

liucf hace 5 años
padre
commit
7c4de3e062
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/store/async-actions/fetchModules.js

+ 1 - 1
src/store/async-actions/fetchModules.js

@@ -32,7 +32,7 @@ const api={
 };
 
 export const getFeature = (item)=>{
-  const datas = json(api.getSymptomFeature+'?text='+item,{});
+  const datas = json(api.getSymptomFeature+'?text='+encodeURIComponent(item),{});
   return datas;
 }