mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
修复默认的success和error的ajax返回没有jump_url问题
This commit is contained in:
@@ -118,6 +118,7 @@ abstract class BaseController
|
|||||||
];
|
];
|
||||||
|
|
||||||
if(\request()->isAjax()){
|
if(\request()->isAjax()){
|
||||||
|
$data['jump_to_url'] = (string)$jump_to_url;
|
||||||
throw new HttpResponseException(json_message($data,0,$msg));
|
throw new HttpResponseException(json_message($data,0,$msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,6 +141,7 @@ abstract class BaseController
|
|||||||
];
|
];
|
||||||
|
|
||||||
if(\request()->isAjax()){
|
if(\request()->isAjax()){
|
||||||
|
$data['jump_to_url'] = (string)$jump_to_url;
|
||||||
throw new HttpResponseException(json_message($data,0,$msg));
|
throw new HttpResponseException(json_message($data,0,$msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user