luolei 5 năm trước cách đây
mục cha
commit
16d3a97a21
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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")