mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
fix: 优化小程序登录
This commit is contained in:
@@ -97,14 +97,13 @@
|
||||
//获取code
|
||||
uni.login({
|
||||
success: (res) => {
|
||||
if(res.errMsg == "login:ok") {
|
||||
if(res.errMsg === "login:ok") {
|
||||
that.code = res.code
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: "系统异常,请联系管理员!"
|
||||
})
|
||||
}
|
||||
that.code = res.code;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user