From 85106d23eff06d5572ec935756f07fcb0578fb2e Mon Sep 17 00:00:00 2001 From: chenshuai Date: Wed, 9 Oct 2019 13:51:01 +0800 Subject: [PATCH] fix listenRemote type error --- .../src/plugins/commands/block/ui/ui/Adder/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/umi-build-dev/src/plugins/commands/block/ui/ui/Adder/index.tsx b/packages/umi-build-dev/src/plugins/commands/block/ui/ui/Adder/index.tsx index 32940fc3fb37..53d0f9e0dc5f 100644 --- a/packages/umi-build-dev/src/plugins/commands/block/ui/ui/Adder/index.tsx +++ b/packages/umi-build-dev/src/plugins/commands/block/ui/ui/Adder/index.tsx @@ -118,7 +118,7 @@ const Adder: React.FC = props => { * 成功之后清理状态 */ api.listenRemote({ - type: 'org.umi.block.add-blocks-', + type: 'org.umi.block.add-blocks-success', onMessage: msg => { setTaskLoading(false); onAddBlockChange(undefined);