From 0747251fa1c888d803775853bb9f9c0b5aeba232 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Mon, 27 Jul 2020 11:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/factory.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/factory.tsx b/src/factory.tsx index 99bba146..c784134d 100644 --- a/src/factory.tsx +++ b/src/factory.tsx @@ -757,8 +757,7 @@ export function HocStoreFactory(renderer: { // // 特殊处理 CRUD。 // CRUD 中 toolbar 里面的 data 是空对象,但是 __super 会不一样 - (nextProps.store?.storeType === 'CRUDStore' && - nextProps.data && + (nextProps.data && props.data && nextProps.data.__super !== props.data.__super) ) {