柒零 1 ano atrás
pai
commit
f01a6bcd91
1 arquivos alterados com 1 adições e 1 exclusões
  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
     })