From 99ec9facd397de2064e8933a4d40ec864a59bd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B5=A9?= Date: Fri, 16 Mar 2018 10:29:32 +0800 Subject: [PATCH] refresh bug --- src/routes/user/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/user/index.js b/src/routes/user/index.js index 0eb62ba..088c29d 100644 --- a/src/routes/user/index.js +++ b/src/routes/user/index.js @@ -41,6 +41,9 @@ const User = ({ type: `user/${modalType}`, payload: data, }) + .then(() => { + handleRefresh() + }) }, onCancel () { dispatch({ @@ -80,7 +83,6 @@ const User = ({ currentItem: item, }, }) - .then(() => handleRefresh) }, rowSelection: { selectedRowKeys, @@ -113,7 +115,6 @@ const User = ({ modalType: 'create', }, }) - .then(() => handleRefresh) }, switchIsMotion () { dispatch({ type: 'user/switchIsMotion' })