作者 Karson

--no commit message

... ... @@ -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'));
... ...