houyaf vor 2 Monaten
Ursprung
Commit
36e6cf9812
1 geänderte Dateien mit 10 neuen und 14 gelöschten Zeilen
  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) {