【代码修复】login.vue 微信登录绑定过慢,导致登录失败

pull/63/MERGE
YunaiV 2024-07-25 08:48:45 +08:00
parent 0b9d7a8808
commit f67e6a7f54
1 changed files with 3 additions and 2 deletions

View File

@ -14,13 +14,14 @@
new URLSearchParams(location.search).forEach((value, key) => {
options[key] = value;
});
// or await
const event = options.event;
const code = options.code;
const state = options.state;
if (event === 'login') { //
const res = await sheep.$platform.useProvider().login(code, state);
await sheep.$platform.useProvider().login(code, state);
} else if (event === 'bind') { //
sheep.$platform.useProvider().bind(code, state);
await sheep.$platform.useProvider().bind(code, state);
}
// H5