diff --git a/src/services/staff/staff.js b/src/services/staff/staff.js index c6ad4b9..d297f5f 100644 --- a/src/services/staff/staff.js +++ b/src/services/staff/staff.js @@ -12,8 +12,8 @@ import http from '../CommonHttp' * @param call 成功的回调 * @returns {Promise} 返回Promise对象 */ -export function getStaffList(params, call) { - return http.get('/store/staff/list', params).then(call) +export function getStaffList(params, call, errorCallback) { + return http.get('/store/staff/list', params).then(call).catch(errorCallback) } /**