谢杰标 2 年 前
コミット
5d7799c9f8
1 ファイル変更3 行追加1 行削除
  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({