From c78051cc51032d4e29d35ca356d11d77a473eced Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 09 八月 2021 18:20:08 +0800 Subject: [PATCH] 2021-08-09 --- src/menu/menushell/index.jsx | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/menu/menushell/index.jsx b/src/menu/menushell/index.jsx index 308e390..7e03f6c 100644 --- a/src/menu/menushell/index.jsx +++ b/src/menu/menushell/index.jsx @@ -57,9 +57,12 @@ content: hasComponent ? '褰撳墠缁勪欢涓惈鏈夊瓙缁勪欢锛�' : '', onOk() { const _cards = cards.filter(item => item.uuid !== card.uuid) - MKEmitter.emit('delButtons', uuids) handleList({...menu, components: _cards}) setCards(_cards) + + if (uuids.length === 0) return + + MKEmitter.emit('delButtons', uuids) }, onCancel() {} }) -- Gitblit v1.8.0