Use router.replace() to prevent invalid back navigations (#9959)

This commit is contained in:
ian
2021-11-23 00:50:09 +08:00
committed by GitHub
parent 37dc1d44b1
commit 89bf066056
12 changed files with 16 additions and 15 deletions

View File

@@ -432,7 +432,7 @@ export default defineComponent({
async function deleteAndQuit() {
try {
await remove();
router.push(`/users`);
router.replace(`/users`);
} catch {
// `remove` will show the unexpected error dialog
}