Commit da447795 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx]:上次提交存在问题,这里得到修正。

parent 67b386de
......@@ -39,6 +39,7 @@ Page({
delta: 1
})
}).catch((err) => {
app.globalData.hasLogin = false;
util.showErrorToast('微信登录失败');
});
......@@ -82,6 +83,10 @@ Page({
}
});
}
else{
app.globalData.hasLogin = false;
util.showErrorToast('账户登录失败');
}
}
});
},
......
......@@ -44,8 +44,6 @@ function request(url, data = {}, method = "GET") {
} catch (e) {
// Do something when catch error
}
// 重置app的未登录状态
app.globalData.hasLogin = false;
// 切换到登录页面
wx.navigateTo({
url: '/pages/auth/login/login'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment