Răsfoiți Sursa

双端支持修正

Zhangbw 1 lună în urmă
părinte
comite
aee145e6b2
1 a modificat fișierele cu 5 adăugiri și 3 ștergeri
  1. 5 3
      src/App.vue

+ 5 - 3
src/App.vue

@@ -71,9 +71,11 @@ export default {
     // #endif
   },
   onShow: function() {
-	  const accountInfo = wx.getAccountInfoSync();
-	  //fakecheck
-	  this.globalData.envVersion = accountInfo.miniProgram.envVersion
+    // #ifdef MP-WEIXIN
+    const accountInfo = wx.getAccountInfoSync();
+    //fakecheck
+    this.globalData.envVersion = accountInfo.miniProgram.envVersion
+    // #endif
     console.log('App Show')
     // 确保导航栏标题正确显示
     uni.setNavigationBarTitle({