chore: workers list api
This commit is contained in:
@@ -206,7 +206,8 @@ export default (props: any) => {
|
||||
runtimeConfig,
|
||||
loading,
|
||||
initialState,
|
||||
setInitialState
|
||||
setInitialState,
|
||||
intl
|
||||
});
|
||||
if (runtimeConfig.rightContentRender) {
|
||||
return runtimeConfig.rightContentRender(layoutProps, dom, {
|
||||
@@ -215,7 +216,8 @@ export default (props: any) => {
|
||||
runtimeConfig,
|
||||
loading,
|
||||
initialState,
|
||||
setInitialState
|
||||
setInitialState,
|
||||
intl
|
||||
});
|
||||
}
|
||||
return dom;
|
||||
|
||||
@@ -14,9 +14,9 @@ export function getRightRenderContent(opts: {
|
||||
loading: boolean;
|
||||
initialState: any;
|
||||
setInitialState: any;
|
||||
intl: any;
|
||||
}) {
|
||||
console.log('runtimeConfig==', opts.runtimeConfig, opts);
|
||||
// const intl = useIntl();
|
||||
const { intl } = opts;
|
||||
if (opts.runtimeConfig.rightRender) {
|
||||
return opts.runtimeConfig.rightRender(
|
||||
opts.initialState,
|
||||
@@ -66,8 +66,7 @@ export function getRightRenderContent(opts: {
|
||||
<span style={{ fontSize: '12px' }}>
|
||||
<GlobalOutlined />
|
||||
<span className="m-l-8">
|
||||
{/* {FormattedMessage({ id: 'common.settings.language' })} */}
|
||||
Language
|
||||
{intl?.formatMessage?.({ id: 'common.settings.language' })}
|
||||
</span>
|
||||
</span>
|
||||
}
|
||||
@@ -87,8 +86,7 @@ export function getRightRenderContent(opts: {
|
||||
label: (
|
||||
<>
|
||||
<SettingOutlined />
|
||||
{/* {intl.formatMessage({ id: 'common.button.settings' })} */}
|
||||
Settings
|
||||
{intl?.formatMessage?.({ id: 'common.button.settings' })}
|
||||
</>
|
||||
),
|
||||
onClick: () => {
|
||||
@@ -112,8 +110,7 @@ export function getRightRenderContent(opts: {
|
||||
label: (
|
||||
<>
|
||||
<LogoutOutlined />
|
||||
{/* {intl.formatMessage({ id: 'common.button.logout' })} */}
|
||||
Logout
|
||||
{intl?.formatMessage?.({ id: 'common.button.logout' })}
|
||||
</>
|
||||
),
|
||||
onClick: () => {
|
||||
|
||||
Reference in New Issue
Block a user