From cc6b05e8b37fb4bc7a3d783c38767b8b754bec1e Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 10 Jun 2025 21:25:58 +0800 Subject: [PATCH] fix: remove fallback for returnUrl in AuthLogin.vue --- dashboard/src/views/authentication/authForms/AuthLogin.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/views/authentication/authForms/AuthLogin.vue b/dashboard/src/views/authentication/authForms/AuthLogin.vue index d97ade8f4..7621954e4 100644 --- a/dashboard/src/views/authentication/authForms/AuthLogin.vue +++ b/dashboard/src/views/authentication/authForms/AuthLogin.vue @@ -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;