优化登录后跳转

pull/515/head
Karson 2025-06-26 16:54:34 +08:00
parent fdb912e3e2
commit 016b7a0d28
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Index extends Backend
public function login()
{
$url = $this->request->get('url', '', 'url_clean');
$url = $url ?: 'index/index';
$url = $url && !preg_match('/\/index\/(login|logout)$/', $url) ? $url : 'index/index';
if ($this->auth->isLogin()) {
$this->success(__("You've logged in, do not login again"), $url);
}