Browse Source

条目缺陷占比详情页面包屑返回报错

zhangxc 5 years ago
parent
commit
ac38e90b46
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/js/singleVeto.js

+ 2 - 2
src/js/singleVeto.js

@@ -56,8 +56,8 @@ $(function(){
         $(".partTitle a").attr("href","console.html").html("控制台 / ")
         $(".partTitle .pices span").html("条目缺陷占比")
     }
-    if(fromThree == 3){
-        deptName = deptList[0].deptName||'';
+    if(from == 2&&fromThree == 3){
+        deptName =  deptList[0]&&deptList[0].deptName||'';
     }
     $(".partTitle a").click(function(){
         //初始菜单选中