mirror of https://gitee.com/topiam/eiam
⚡ 优化代码
parent
4a72268de0
commit
ea3e2d5184
|
@ -89,11 +89,7 @@ export default () => {
|
||||||
loading ? (
|
loading ? (
|
||||||
<Skeleton active paragraph={{ rows: 1 }} />
|
<Skeleton active paragraph={{ rows: 1 }} />
|
||||||
) : (
|
) : (
|
||||||
<ProDescriptions
|
<ProDescriptions size="small" column={isMobile ? 1 : 2} dataSource={{ ...app }}>
|
||||||
size="small"
|
|
||||||
column={isMobile ? 1 : 2}
|
|
||||||
dataSource={{ ...app }}
|
|
||||||
>
|
|
||||||
<ProDescriptions.Item
|
<ProDescriptions.Item
|
||||||
dataIndex="type"
|
dataIndex="type"
|
||||||
label={intl.formatMessage({ id: 'pages.app.config.detail.config.type' })}
|
label={intl.formatMessage({ id: 'pages.app.config.detail.config.type' })}
|
||||||
|
@ -195,7 +191,16 @@ export default () => {
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
tabActiveKey={tabActiveKey}
|
tabActiveKey={tabActiveKey}
|
||||||
onTabChange={setTabActiveKey}
|
onTabChange={(key) => {
|
||||||
|
setTabActiveKey(key);
|
||||||
|
history.replace({
|
||||||
|
pathname: location.pathname,
|
||||||
|
search: queryString.stringify({
|
||||||
|
type: key,
|
||||||
|
id,
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}}
|
||||||
tabList={[
|
tabList={[
|
||||||
{
|
{
|
||||||
key: ConfigTabs.app_config,
|
key: ConfigTabs.app_config,
|
||||||
|
|
Loading…
Reference in New Issue