Commit 0bfcc37b by zhujian

fix:rtyuiopk

parent 302a2af2
...@@ -49,13 +49,14 @@ const App: React.FC = (props: any) => { ...@@ -49,13 +49,14 @@ const App: React.FC = (props: any) => {
async function initWechatConfig() { async function initWechatConfig() {
WechatApi.initConfig({ isAgentConfig: true, url: window.location.href.split('#')[0] }).then(() => { WechatApi.initConfig({ isAgentConfig: true, url: window.location.href.split('#')[0] }).then(() => {
if (!initWechat) { if (!initWechat) {
console.log('回调结束',new Date().valueOf())
getStoreAndUserInfo(); getStoreAndUserInfo();
setInitWechat(true) setInitWechat(true)
} }
}) })
setTimeout(() => { setTimeout(() => {
console.log('开始调用store',new Date().valueOf())
if (!initWechat) { if (!initWechat) {
getStoreAndUserInfo(); getStoreAndUserInfo();
setInitWechat(true) setInitWechat(true)
......
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