Browse Source

问题修改

1178232204@qq.com 3 years ago
parent
commit
2b5ce40fdd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/js/tcmiss.js

+ 4 - 0
src/js/tcmiss.js

@@ -51,6 +51,10 @@ function getTcmData(param, config) {
     const isHor = window.location.pathname.indexOf("cdssHorizontal") > -1;
     const num = isHor ? 3 : ((item[0] || {}).number || 3);
     const {tcmDiag, tcmSyndrome} = param;
+    if (!tcmDiag) {     //没有推送入参时不显示推送模块
+        $(".recipe").hide();
+        return;
+    }
     $("#jibing").text(tcmDiag + "-" + tcmSyndrome);
     $('#bingming').text(tcmDiag);
     $('#zhenghou').text(tcmSyndrome);