mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
success方法增加提示信息, fix #138
This commit is contained in:
parent
1c1f9d3c22
commit
ec21088fa2
@ -428,8 +428,8 @@ module.exports = Class(function() {
|
||||
* @param {[type]} data [description]
|
||||
* @return {[type]} [description]
|
||||
*/
|
||||
success: function(data){
|
||||
var obj = getObject([C('error_no_key'), C('error_msg_key')], [0, '']);
|
||||
success: function(data, message){
|
||||
var obj = getObject([C('error_no_key'), C('error_msg_key')], [0, message || '']);
|
||||
if (data !== undefined) {
|
||||
obj.data = data;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user