柒零 hace 1 año
padre
commit
f01a6bcd91
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
     })