mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进isajax ispjax方法
This commit is contained in:
@@ -1257,7 +1257,9 @@ class Request
|
|||||||
if (true === $ajax) {
|
if (true === $ajax) {
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} 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) {
|
if (true === $pjax) {
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} 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