谢杰标 2 năm trước cách đây
mục cha
commit
5d7799c9f8
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      pages/learn/index.vue

+ 3 - 1
pages/learn/index.vue

@@ -832,7 +832,9 @@ export default {
     // 1668873600 ,2022.11.20的时间戳
     this.leftDays = 1668873600 - parseInt(curTime / 1000);
     this.sysTime = +this.$method.timest();
-    !this.userInfo && this.$api.refreshUserInfo();
+    if (this.$method.isLogin()) {
+      !this.userInfo && this.$api.refreshUserInfo();
+    }
   },
   async onShow() {
     uni.pageScrollTo({