1
0
mirror of synced 2026-04-14 21:19:18 +08:00

fix(editor,ui,ui-vue2,ui-react): 页面配置更新后,蒙层无法显示

fix #472
This commit is contained in:
roymondchen
2023-03-06 16:29:46 +08:00
parent 449efcc56b
commit c025508cd7
5 changed files with 8 additions and 8 deletions

View File

@@ -26,12 +26,12 @@ import AppContent from './AppContent';
interface UseAppOptions {
config: MComponent;
methods?: {
string: Function;
[key: string]: Function;
};
}
export default ({ config, methods }: UseAppOptions) => {
const app: Core = useContext(AppContent);
const app: Core | undefined = useContext(AppContent);
const node = app?.page?.getNode(config.id);
const [created, setCreated] = useState(false);