[Bugfix] 修复 ApiUpdateAttr的bug

This commit is contained in:
ibuler
2018-04-03 10:36:11 +08:00
parent 951ac252fe
commit 0b812a03c6

View File

@@ -170,9 +170,7 @@ function APIUpdateAttr(props) {
dataType: props.data_type || "json"
}).done(function(data, textStatue, jqXHR) {
if (flash_message) {
if (send_message) {
toastr.success(success_message);
}
toastr.success(success_message);
}
if (typeof props.success === 'function') {
return props.success(data);