fix: remove fallback for returnUrl in AuthLogin.vue

This commit is contained in:
Soulter
2025-06-10 21:25:58 +08:00
parent 417747d5d0
commit cc6b05e8b3

View File

@@ -23,7 +23,7 @@ async function validate(values: any, { setErrors }: any) {
}
const authStore = useAuthStore();
authStore.returnUrl = new URLSearchParams(window.location.search).get('redirect') || null;
authStore.returnUrl = new URLSearchParams(window.location.search).get('redirect');
return authStore.login(username.value, password_).then((res) => {
console.log(res);
loading.value = false;