mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进isajax ispjax方法
This commit is contained in:
@@ -1257,7 +1257,9 @@ class Request
|
||||
if (true === $ajax) {
|
||||
return $result;
|
||||
} else {
|
||||
return $this->param(Config::get('var_ajax')) ? true : $result;
|
||||
$result = $this->param(Config::get('var_ajax')) ? true : $result;
|
||||
$this->mergeParam = false;
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1273,7 +1275,9 @@ class Request
|
||||
if (true === $pjax) {
|
||||
return $result;
|
||||
} else {
|
||||
return $this->param(Config::get('var_pjax')) ? true : $result;
|
||||
$result = $this->param(Config::get('var_pjax')) ? true : $result;
|
||||
$this->mergeParam = false;
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user