houyaf 2 月之前
父节点
当前提交
36e6cf9812
共有 1 个文件被更改,包括 10 次插入14 次删除
  1. 10 14
      pages/index/index.vue

+ 10 - 14
pages/index/index.vue

@@ -245,20 +245,16 @@
         })
       },
       getBaseData() {
-        if (uni.getStorageSync('dutys')) {
-          this.groupView = uni.getStorageSync("groupView")
-        } else {
-          dutyApi.getByList().then((res) => {
-            uni.setStorageSync("dutys", res.data)
-          })
-          selectGroupUser().then((res) => {
-            uni.setStorageSync("groupUser", res.data)
-          })
-          getGroupView().then((res) => {
-            uni.setStorageSync("groupView", res.data)
-            this.groupView = res.data
-          })
-        }
+        //dutyApi.getByList().then((res) => {
+        //  uni.setStorageSync("dutys", res.data)
+        //})
+        selectGroupUser().then((res) => {
+          uni.setStorageSync("groupUser", res.data)
+        })
+        getGroupView().then((res) => {
+          uni.setStorageSync("groupView", res.data)
+          this.groupView = res.data
+        })
       },
       getStatisticsData() {
         if (this.statisticsIdx === 0) {