Skip to content

Commit 602cb84

Browse files
committed
fix(): After deleting a cluster, clicking the browser back page jumps to an error
1 parent cf92a85 commit 602cb84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ui/src/pages/Cluster/Detail/Overview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const ClusterOverview: React.FC = () => {
5151
defaultMessage: '删除成功',
5252
}),
5353
);
54-
history.push('/cluster');
54+
history.replace('/cluster');
5555
}
5656
};
5757

ui/src/pages/OBProxy/Detail/Overview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function Overview() {
4545
defaultMessage: '删除成功',
4646
}),
4747
);
48-
history.push('/obproxy');
48+
history.replace('/obproxy');
4949
}
5050
};
5151

ui/src/pages/Tenant/Detail/Overview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function TenantOverview() {
8282
defaultMessage: '删除成功',
8383
}),
8484
);
85-
history.push('/tenant');
85+
history.replace('/tenant');
8686
}
8787
};
8888

0 commit comments

Comments
 (0)