Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

litemall-wx 微信小程序登录问题 #524

Open
billgame opened this issue Nov 4, 2022 · 1 comment
Open

litemall-wx 微信小程序登录问题 #524

billgame opened this issue Nov 4, 2022 · 1 comment

Comments

@billgame
Copy link

billgame commented Nov 4, 2022

litemall-wx/pages/auth/login/login.js
doLogin: function(userInfo) {
user.checkLogin().catch(() => {

catch 应改成 then ?

@billgame
Copy link
Author

billgame commented Nov 4, 2022

或者缺少.then((err) => {
//本地有 userInfo 和 token 凭证,则使用本地的凭证
app.globalData.hasLogin = true;
wx.navigateBack({
delta: 1
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant