mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-10-15 07:15:47 +00:00
refactor: redirect to current url after login (#189)
登录后 redirect_uri 改为当前所在路径
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user