luolei 5 лет назад
Родитель
Сommit
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")