diff --git a/ui/src/pages/Cluster/Detail/Overview/index.tsx b/ui/src/pages/Cluster/Detail/Overview/index.tsx index 4dd4106fc..9970f598f 100644 --- a/ui/src/pages/Cluster/Detail/Overview/index.tsx +++ b/ui/src/pages/Cluster/Detail/Overview/index.tsx @@ -50,7 +50,7 @@ const ClusterOverview: React.FC = () => { defaultMessage: '删除成功', }), ); - history.push('/cluster'); + history.replace('/cluster'); } }; diff --git a/ui/src/pages/OBProxy/Detail/Overview/index.tsx b/ui/src/pages/OBProxy/Detail/Overview/index.tsx index f7907be7f..8dc4a3483 100644 --- a/ui/src/pages/OBProxy/Detail/Overview/index.tsx +++ b/ui/src/pages/OBProxy/Detail/Overview/index.tsx @@ -45,7 +45,7 @@ export default function Overview() { defaultMessage: '删除成功', }), ); - history.push('/obproxy'); + history.replace('/obproxy'); } }; diff --git a/ui/src/pages/Tenant/Detail/Overview/index.tsx b/ui/src/pages/Tenant/Detail/Overview/index.tsx index 34dac8e52..96ce0e048 100644 --- a/ui/src/pages/Tenant/Detail/Overview/index.tsx +++ b/ui/src/pages/Tenant/Detail/Overview/index.tsx @@ -82,7 +82,7 @@ export default function TenantOverview() { defaultMessage: '删除成功', }), ); - history.push('/tenant'); + history.replace('/tenant'); } }; @@ -211,7 +211,7 @@ export default function TenantOverview() { const operateSuccess = () => { setTimeout(() => { - getTenantDetail({ ns:ns!, name:name! }); + getTenantDetail({ ns: ns!, name: name! }); }, 1000); }; const header = () => {