luolei пре 5 година
родитељ
комит
16d3a97a21
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/js/tiaomu.js

+ 1 - 1
src/js/tiaomu.js

@@ -17,7 +17,7 @@ $(".selectModuleType").append(`<img class="arrow" src=${iconDown} alt="下拉">`
 $(".selectReject").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectUsed").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
-let deptList = JSON.parse(getCookie("deptList"))
+let deptList = JSON.parse(getCookie("deptList"))||[]
 $(function(){
     dateChange()
     let srcUrl = $("#contentIframe",parent.document).attr("src")