Commit 07736b35 authored by 皮倩雯's avatar 皮倩雯

fix: '网关配置万能模板只允许查看'

parent d3b653ad
......@@ -272,7 +272,9 @@ const GateConfig = () => {
key: 'action',
width: 100,
align: 'center',
render: record => (
render: record => {
if (record.key != 'CityServer') {
return (
<Space size="middle">
<Tooltip title="编辑">
<EditTwoTone onClick={() => edit(record)} style={{ fontSize: '16px' }} />
......@@ -294,7 +296,17 @@ const GateConfig = () => {
</Popconfirm>
</Tooltip>
</Space>
),
);
} else {
return (
<Space size="middle">
<Tooltip title="查看">
<SearchOutlined onClick={() => look(record)} style={{ fontSize: '16px' }} />
</Tooltip>
</Space>
);
}
},
},
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment