Page({ data: { key: "is_first", loading: true, }, onLoad(options) { this.init() }, init() { let state = wx.getStorageSync(this.data.key); if (state) { wx.redirectTo({ url: "/pages/joinFlow/access/index", }) } else { this.setData({ loading: false }) } }, handNext() { wx.setStorageSync(this.data.key, true) wx.redirectTo({ url: "/pages/home/index", }) } })