fix: catalog form meta data update

This commit is contained in:
jialin
2025-01-17 21:22:15 +08:00
parent 58fcc90417
commit faa13f58e0
9 changed files with 138 additions and 10 deletions
+5 -2
View File
@@ -94,7 +94,9 @@ const mapRoutes = (routes: IRoute[], role: string) => {
};
export default (props: any) => {
const { initialize: initialize } = useOverlayScroller();
const { initialize: initialize } = useOverlayScroller({
defer: false
});
const { initialize: initializeMenu } = useOverlayScroller();
const [userInfo] = useAtom(userAtom);
const [routeCache] = useAtom(routeCacheAtom);
@@ -209,7 +211,8 @@ export default (props: any) => {
useEffect(() => {
const body = document.querySelector('body');
if (body) {
initialize(body);
const ins = initialize(body);
window.__GPUSTACK_BODY_SCROLLER__ = ins;
}
}, [initialize]);