Commit f12786d8 by zhaochengxiang

qiankun

parent 7064ec18
...@@ -32,9 +32,19 @@ const FC = ({ type, data }) => { ...@@ -32,9 +32,19 @@ const FC = ({ type, data }) => {
}, []) }, [])
React.useEffect(() => { React.useEffect(() => {
setTimeout(() => { function updateMicroApp() {
microApp.current?.update?.({ type, data }) if (microApp.current?.update) {
}, 200) setTimeout(() => {
microApp.current?.update?.({ type, data })
}, 100)
} else {
setTimeout(() => {
updateMicroApp()
}, 100)
}
}
updateMicroApp()
}, [type, data]) }, [type, data])
return ( return (
......
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