Просмотр исходного кода

我的-上拉刷新请求数据

jf 5 лет назад
Родитель
Сommit
b3b2575126
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      ghsApp/src/admin/home/me.vue

+ 4 - 3
ghsApp/src/admin/home/me.vue

@@ -153,10 +153,10 @@ export default {
     };
   },
   onPullDownRefresh() {
-        uni.stopPullDownRefresh();
+					this.init()
   },
   onShow(){
-    this.init()
+    // this.init()
   },
   methods: {
     shopShow() {
@@ -167,6 +167,7 @@ export default {
       try {
         const { data } = await mainMy();
         this.infoData = data;
+							uni.stopPullDownRefresh();
       } finally {
       }
     },
@@ -373,4 +374,4 @@ export default {
     border-radius: 10px;
   }
 }
-</style>
+</style>