Commit 55c978bb by zhujian

fix:rtyuiopk

parents ce1377bb bc1e34d2
......@@ -29,7 +29,6 @@ export default class WechatApi {
signature: res.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法
jsApiList: ['chooseImage', 'shareToExternalContact', 'selectExternalContact', 'selectEnterpriseContact'],
}).then(() => {
if (params.isAgentConfig) {
return new Promise(async (resolve, reject) => {
Service.Hades('anon/hades/getWxWorkJSAPISignature', {
storeId: User.getStoreId(),
......@@ -56,7 +55,7 @@ export default class WechatApi {
});
});
});
}
})
......
......@@ -48,8 +48,9 @@ const App: React.FC = (props: any) => {
}
}, [])
async function initWechatConfig() {
await WechatApi.initConfig({ isAgentConfig: true, url: window.location.href.split('#')[0] })
console.log('微信注册完成')
WechatApi.initConfig({ isAgentConfig: true, url: window.location.href.split('#')[0] }).then(() => {
console.log('注册完成')
})
}
useEffect(() => {
getStorePermission();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment