Commit ce1377bb by zhujian

fix:rtyuiopk

parent 77f9b151
...@@ -39,6 +39,7 @@ const App: React.FC = (props: any) => { ...@@ -39,6 +39,7 @@ const App: React.FC = (props: any) => {
useEffect(() => { useEffect(() => {
initWechatConfig(); initWechatConfig();
getStoreAndUserInfo(); getStoreAndUserInfo();
console.log('拉取数据')
getVersion(); getVersion();
if (window.location.hash === "#/") { if (window.location.hash === "#/") {
window.RCHistory.replace({ window.RCHistory.replace({
...@@ -48,6 +49,7 @@ const App: React.FC = (props: any) => { ...@@ -48,6 +49,7 @@ const App: React.FC = (props: any) => {
}, []) }, [])
async function initWechatConfig() { async function initWechatConfig() {
await WechatApi.initConfig({ isAgentConfig: true, url: window.location.href.split('#')[0] }) await WechatApi.initConfig({ isAgentConfig: true, url: window.location.href.split('#')[0] })
console.log('微信注册完成')
} }
useEffect(() => { useEffect(() => {
getStorePermission(); 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