diff --git a/npm/src/components/Console.js b/npm/src/components/Console.js index cb63ac0..3b33916 100644 --- a/npm/src/components/Console.js +++ b/npm/src/components/Console.js @@ -132,9 +132,7 @@ const Console = props => { for (const [chartKey, chartValue] of Object.entries(global.config.chart)) { return ( - - {chartComponent(chartKey, chartValue.component, chartValue.config)} - + ); } diff --git a/npm/src/components/Error.js b/npm/src/components/Error.js index a4fbd54..6fa358c 100644 --- a/npm/src/components/Error.js +++ b/npm/src/components/Error.js @@ -19,9 +19,11 @@ const Error = props => { } }, 1000); return ( - + + children={localeValue(':login')} + /> - - {localeValue(':remember')} - + diff --git a/npm/src/global.js b/npm/src/global.js index 4050697..188a840 100644 --- a/npm/src/global.js +++ b/npm/src/global.js @@ -98,7 +98,7 @@ const ModelKit = forwardRef((props, ref) => { setIsModalDestroy(false); setIsModalOpen(true); }; - + const modalMessage = useCallback(event => { if (event.origin === window.location.origin) { if (event.data.error === 0) { @@ -123,7 +123,7 @@ const ModelKit = forwardRef((props, ref) => { { title='modalFrame' src={modalConfig.url} style={{ border: 'none', flex: '1 1 auto' }} - > + /> ); });