作者 Karson

--no commit message

@@ -10914,7 +10914,7 @@ define('form',['jquery', 'bootstrap', 'backend', 'toastr', 'upload', 'validator' @@ -10914,7 +10914,7 @@ define('form',['jquery', 'bootstrap', 'backend', 'toastr', 'upload', 'validator'
10914 } 10914 }
10915 Toastr.success(msg ? msg : __('Operation completed')); 10915 Toastr.success(msg ? msg : __('Operation completed'));
10916 } else { 10916 } else {
10917 - if (typeof data.token !== 'undefined') { 10917 + if (data && typeof data === 'object' && typeof data.token !== 'undefined') {
10918 $("input[name='__token__']").val(data.token); 10918 $("input[name='__token__']").val(data.token);
10919 } 10919 }
10920 Toastr.error(msg ? msg : __('Operation failed')); 10920 Toastr.error(msg ? msg : __('Operation failed'));