diff --git a/public/login.js b/public/login.js index 5840bd2..a109188 100644 --- a/public/login.js +++ b/public/login.js @@ -23,6 +23,9 @@ document.querySelector("#login").onsubmit = async (event) => { window.location.pathname = "/"; return; } - window.location.pathname = decodeURIComponent(params.get("refer")); + const refer = decodeURIComponent(params.get("refer")); + params.delete("refer") + window.location.search = params.toString(); + window.location.pathname = refer; };