refactor: redirect to current url after login (#189)

登录后 redirect_uri 改为当前所在路径
This commit is contained in:
BugKing
2024-10-14 12:01:53 +08:00
committed by GitHub
parent ea43d6fcfe
commit f1417cb266

View File

@@ -144,7 +144,8 @@
> >
<a <a
class="size-full truncate px-4 py-2 text-gray-600 hover:text-blue-600 dark:text-slate-50 dark:hover:text-gray-300" class="size-full truncate px-4 py-2 text-gray-600 hover:text-blue-600 dark:text-slate-50 dark:hover:text-gray-300"
href="/login?redirect_uri=/" href="/login"
onclick="this.href = '/login?redirect_uri=' + encodeURIComponent(window.location.href)"
> >
登录 登录
</a> </a>