mirror of https://gitee.com/karson/fastadmin.git
修复登录无限跳转BUG
parent
e816d8538b
commit
cbfc382d8c
|
|
@ -92,7 +92,7 @@ class Backend extends Controller
|
|||
!defined('IS_AJAX') && define('IS_AJAX', $this->request->isAjax());
|
||||
|
||||
// 非选项卡时重定向
|
||||
if (!IS_AJAX && !IS_ADDTABS && !IS_DIALOG && $path !== "/{$modulename}/index/index" && $controllername != 'ajax')
|
||||
if (!IS_AJAX && !IS_ADDTABS && !IS_DIALOG && !in_array($controllername, ['index', 'ajax']))
|
||||
{
|
||||
$url = $this->request->url();
|
||||
$this->redirect('index/index', [], 302, ['referer' => $url]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue