guhongwei 3 years ago
parent
commit
72b511ce9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/index/index.js

+ 1 - 1
pages/index/index.js

@@ -40,7 +40,7 @@ Page({
     wx.getStorage({
       key: 'token',
       success: res => {
-        // if (res.data) wx.redirectTo({ url: '/pages/home/index', })
+        if (res.data) wx.redirectTo({ url: '/pages/home/index', })
       },
       fail: res => {
         wx.redirectTo({ url: '/pages/login/index', })