Browse Source

refactor: when deleting your account you'll be redirected to home

Kristian Vos 3 năm trước cách đây
mục cha
commit
1cf40bb640
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/src/components/modals/RemoveAccount.vue

+ 1 - 1
frontend/src/components/modals/RemoveAccount.vue

@@ -250,7 +250,7 @@ export default {
 						lofig.get("cookie").then(cookie => {
 							document.cookie = `${cookie.SIDname}=;expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
 							this.closeModal("removeAccount");
-							return window.location.reload();
+							window.location.href = "/";
 						})
 					);
 				}