From 0e426c4a00280601ed99caf6ad13dd93bd4e3139 Mon Sep 17 00:00:00 2001 From: kevin jiang Date: Wed, 3 Jun 2020 22:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A0=E8=BD=BD=E4=B8=AD?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/staff/staff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } /**