微信公众号登录:获得 JS SDK 签名

This commit is contained in:
YunaiV
2023-12-21 21:04:19 +08:00
parent d6cf64be1e
commit 2bfd7474cf
8 changed files with 48 additions and 78 deletions
@@ -1,5 +1,4 @@
// 登录
import { isEmpty } from 'lodash';
import third from '@/sheep/api/third';
const load = async () => {};
@@ -11,6 +10,7 @@ const login = () => {
provider: 'weixin',
onlyAuthorize: true,
});
debugger
if (loginRes.errMsg == 'login:ok') {
const res = await third.wechat.login({
platform: 'openPlatform',