From 222d999dbab559c950c03f43a97a574dfbcffdad Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 19 Dec 2024 17:06:41 +0700 Subject: [PATCH] fix ==> setAuthen '/' --- src/plugins/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/auth.ts b/src/plugins/auth.ts index b5d3dfe47..6c7ee8872 100644 --- a/src/plugins/auth.ts +++ b/src/plugins/auth.ts @@ -12,7 +12,7 @@ const authenticated = async () => ((await getToken()) ? true : false); async function setAuthen(r: AuthResponse) { await setCookie(ACCESS_TOKEN, r.access_token, r.expires_in); - window.location.href = "/login"; + window.location.href = "/"; } async function logout() {