From 198303e5bcc44fd502659178f3bf73be7a0a6060 Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Tue, 18 Jul 2017 11:38:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95errc?= =?UTF-8?q?ode=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/actions/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/actions/login.js b/client/actions/login.js index 15becaa3..b708e38d 100644 --- a/client/actions/login.js +++ b/client/actions/login.js @@ -9,7 +9,7 @@ const cookies = new Cookies(); const loginActions = (data) => { return (dispatch) => { axios.post('/user/login', data).then((res) => { - if (res.data.data.errcode === 0) { + if (res.data.errcode === 0) { cookies.set(data.email, data.password); dispatch({ type: LOGIN, @@ -18,7 +18,7 @@ const loginActions = (data) => { } }); } else { - console.log('登录失败'); + console.log('登录失败,errcode不为0'); } }).catch((err) => { console.log(err);