guhongwei 3 년 전
부모
커밋
72b511ce9a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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', })