Przeglądaj źródła

科室部分报表获取数据bug1619

zhouna 3 lat temu
rodzic
commit
baf99ee048
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      src/js/index.js

+ 4 - 2
src/js/index.js

@@ -438,12 +438,14 @@ function initMenu(data, userInfo) {
 //获取科室列表
 function getOwnDept() {
   // if(hasData('FUNC000058')){
-  setCookie("deptList", JSON.stringify([]))
+  setLocal("deptList", JSON.stringify([]))
+  //setCookie("deptList", JSON.stringify([]))
   post(api.getDept, {}).then((res) => {
     let data = res.data;
     if (data.code == 0) {
       let result = data.data
-      setCookie("deptList", JSON.stringify(result))
+	  setLocal("deptList", JSON.stringify(result))
+	  //setCookie("deptList", JSON.stringify(result))
     }
   })
   // }