fix: 优化小程序登录
parent
82810eb179
commit
7c2a50eec0
|
@ -97,14 +97,13 @@
|
||||||
//获取code
|
//获取code
|
||||||
uni.login({
|
uni.login({
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if(res.errMsg == "login:ok") {
|
if(res.errMsg === "login:ok") {
|
||||||
that.code = res.code
|
that.code = res.code
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "系统异常,请联系管理员!"
|
title: "系统异常,请联系管理员!"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
that.code = res.code;
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue