Skip to content

Commit 573eb21

Browse files
authored
After deleting a cluster, clicking the browser back page jumps to an error (#603)
1 parent 6182d55 commit 573eb21

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
@@ -50,7 +50,7 @@ const ClusterOverview: React.FC = () => {
5050
defaultMessage: '删除成功',
5151
}),
5252
);
53-
history.push('/cluster');
53+
history.replace('/cluster');
5454
}
5555
};
5656

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)