linwenxin 1 yıl önce
ebeveyn
işleme
5e8dda6a82
1 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 1 4
      src/App.vue

+ 1 - 4
src/App.vue

@@ -30,6 +30,7 @@
       });
       // 新的版本下载失败
       updateManager.onUpdateFailed((res) => {});
+      // #endif
 
       uni.$on('updateUserInfo', () => {
         this.updateUserInfo();
@@ -39,8 +40,6 @@
         this.updateUserInfo();
       }
 
-      // #endif
-
       uni.getSystemInfo({
         success: function(e) {
           console.log(e);
@@ -69,7 +68,6 @@
 
     },
     methods: {
-      // #ifdef MP-WEIXIN
       async updateUserInfo() {
         (function getUserVal() {
           if (getUserValTimeId) {
@@ -80,7 +78,6 @@
           })
         })()
       },
-      // #endif
     },
   }
 </script>