2026-06-25 16:30:37 +08:00
|
|
|
|
import { useEffect } from "react";
|
|
|
|
|
|
import { ensureOrgContext } from "~/api/enterpriseInfo/orgBootstrap";
|
|
|
|
|
|
|
|
|
|
|
|
/** 进入企业信息模块时缓存机构 id,供子表分页携带 orgId */
|
2026-06-23 18:07:30 +08:00
|
|
|
|
function EnterpriseInfo(props) {
|
2026-06-25 16:30:37 +08:00
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
ensureOrgContext().catch(() => null);
|
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
2026-06-23 18:07:30 +08:00
|
|
|
|
return (
|
|
|
|
|
|
<div>
|
|
|
|
|
|
{props.children}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default EnterpriseInfo;
|