fix: 优化小程序登录

master
misworga831 2023-08-10 15:04:20 +08:00
parent 82810eb179
commit 7c2a50eec0
1 changed files with 1 additions and 2 deletions

View File

@ -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;
},
});