mirror of https://gitee.com/karson/fastadmin.git
pull/323483/MERGE
parent
bcb48fcfed
commit
ff831c3e08
|
|
@ -10914,7 +10914,7 @@ define('form',['jquery', 'bootstrap', 'backend', 'toastr', 'upload', 'validator'
|
|||
}
|
||||
Toastr.success(msg ? msg : __('Operation completed'));
|
||||
} else {
|
||||
if (typeof data.token !== 'undefined') {
|
||||
if (data && typeof data === 'object' && typeof data.token !== 'undefined') {
|
||||
$("input[name='__token__']").val(data.token);
|
||||
}
|
||||
Toastr.error(msg ? msg : __('Operation failed'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue