去掉本地openId校验,避免缓存导致的异常
This commit is contained in:
parent
cab46361fe
commit
4693232a52
@ -160,9 +160,9 @@ export const useUserStore = defineStore({
|
||||
async loginByOpenId(openId: string) {
|
||||
try {
|
||||
// 先校验当前登录的用户的openid,如果和传入的openid匹配,直接返回true
|
||||
if (this.userdata && this.userdata.openId && openId && this.userdata.openId === openId) {
|
||||
return true;
|
||||
}
|
||||
// if (this.userdata && this.userdata.openId && openId && this.userdata.openId === openId) {
|
||||
// return true;
|
||||
// }
|
||||
// 如果当前登录的用户的openid和传入的openid不匹配,则调用checkOpenId接口进行校验
|
||||
const res = await checkOpenId({
|
||||
openId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user