修复登录无限跳转BUG

pull/323483/MERGE
Karson 2017-06-02 17:54:20 +08:00
parent e816d8538b
commit cbfc382d8c
1 changed files with 1 additions and 1 deletions

View File

@ -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]);