谢杰标 %!s(int64=2) %!d(string=hai) anos
pai
achega
5d7799c9f8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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({