From b8ceffd1430fb064dad8fbce5c404148e87bc22e Mon Sep 17 00:00:00 2001 From: greyu Date: Wed, 2 May 2018 10:05:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E7=94=A8=E7=B1=BB=E5=9E=8B=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=89=A9=E5=B1=95=E7=AC=A6=E5=8F=B7=E5=BE=97=E5=88=B0?= =?UTF-8?q?=E7=9A=84=E8=BF=98=E6=98=AF=E5=8E=9F=E6=9D=A5=E7=9A=84=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/reducers/userInfo.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/reducers/userInfo.jsx b/app/reducers/userInfo.jsx index 2c2175e..b888c89 100644 --- a/app/reducers/userInfo.jsx +++ b/app/reducers/userInfo.jsx @@ -3,10 +3,9 @@ const initState = {}; export default function userInfo(state = initState, action) { switch (action.type) { case 'USERINFO_UPDATE_CITYNAME': - return { - ...state, + return Object.assign({}, state, { cityName: action.cityName - }; + }) default: return state; }