소스 검색

横版不生效配置个数

zhouna 4 년 전
부모
커밋
701ae65eb1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/js/tcmiss.js

+ 2 - 1
src/js/tcmiss.js

@@ -47,7 +47,8 @@ function getTcmMr(mrId, config) {
 //获取处方推荐
 function getTcmData(param, config) {
     const item = config.planDetails.filter((it) => it.code === "treatment");
-    const num = (item[0] || {}).number || 3;
+    const isHor = window.location.pathname.indexOf("cdssHorizontal") > -1;
+    const num = isHor ? 3 : ((item[0] || {}).number || 3);
     const {tcmDiag, tcmSyndrome} = param;
     if (!tcmDiag) {     //没有推送入参时不显示推送模块
         $(".recipe").hide();