fix: fix invalid url in applications page (#1389)

This commit is contained in:
imp2002
2022-12-10 22:06:21 +08:00
committed by GitHub
parent b41d8652f0
commit 19dce838d1
3 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ class AdapterListPage extends BaseListPage {
...this.getColumnSearchProps("name"), ...this.getColumnSearchProps("name"),
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<Link to={`/adapters/${text}`}> <Link to={`/adapters/${record.organization}/${text}`}>
{text} {text}
</Link> </Link>
); );

View File

@ -197,9 +197,9 @@ class ApplicationListPage extends BaseListPage {
<List.Item> <List.Item>
<div style={{display: "inline"}}> <div style={{display: "inline"}}>
<Tooltip placement="topLeft" title="Edit"> <Tooltip placement="topLeft" title="Edit">
<Button style={{marginRight: "5px"}} icon={<EditOutlined />} size="small" onClick={() => Setting.goToLinkSoft(this, `/providers/${providerItem.name}`)} /> <Button style={{marginRight: "5px"}} icon={<EditOutlined />} size="small" onClick={() => Setting.goToLinkSoft(this, `/providers/${record.organization}/${providerItem.name}`)} />
</Tooltip> </Tooltip>
<Link to={`/providers/${providerItem.name}`}> <Link to={`/providers/${record.organization}/${providerItem.name}`}>
{providerItem.name} {providerItem.name}
</Link> </Link>
</div> </div>

View File

@ -113,7 +113,7 @@ class ResourceListPage extends BaseListPage {
...this.getColumnSearchProps("application"), ...this.getColumnSearchProps("application"),
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<Link to={`/applications/${text}`}> <Link to={`/applications/${record.organization}/${text}`}>
{text} {text}
</Link> </Link>
); );