فهرست منبع

bug-511 /basis/knowlib/effectQuery 未过滤 effictId 查询参数,已做兼容处理

cc12458 4 ماه پیش
والد
کامیت
c8e7536fe9
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/api/knowledge.js

+ 5 - 0
src/api/knowledge.js

@@ -199,6 +199,11 @@ export function getEffectQuery(data) {
         url: '/basis/knowlib/effectQuery?effictId=' + data.effictId + '&effecttype=' + data.effecttype,
         method: 'post',
         data
+    }).then(res => {
+      if (data.effictId && res.data.effects.length > 1) {
+        res.data.effects = res.data.effects.filter(item => item.effectid === data.effictId)
+      }
+      return res;
     })
 }