正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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')); |
-
请 注册 或 登录 后发表评论