mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
success/error方法支持ajax
This commit is contained in:
@@ -92,6 +92,7 @@ trait View
|
||||
'url' => $url,
|
||||
'wait' => $wait,
|
||||
];
|
||||
IS_AJAX && Config::set('default_return_type', Config::get('default_ajax_return'));
|
||||
if ('html' == Config::get('default_return_type')) {
|
||||
return $this->fetch(Config::get('dispatch_jump_tmpl'), $result);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user