Commit b70689b8 by 施宇

1

parent e1cec561
Showing with 3 additions and 3 deletions
......@@ -26,9 +26,9 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
if (judgeToken()) {
this.getData();
} else {
wx.removeStorageSync('homeToken')
this.getData();
if (!judgeToken()) {
wx.setStorageSync('homeToken', 1)
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment