瀏覽代碼

编码分词接口入参

liucf 5 年之前
父節點
當前提交
7c4de3e062
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 }