柒零 1 vuosi sitten
vanhempi
commit
f01a6bcd91
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pages/scan/scan.js

+ 1 - 1
pages/scan/scan.js

@@ -73,7 +73,7 @@ Page({
     })
   },
   checkAuth() {
-    var hasAuth = wx.getStorageSync("hasAuth");
+    var hasAuth = wx.getStorageSync("hasAuth") || false;
     this.setData({
       hasAuth: hasAuth
     })