From d8de76178e6b6f6abaa4a5fc6b5ba98d5ad2909f Mon Sep 17 00:00:00 2001 From: laoluo <375119293@qq.com> Date: Tue, 19 Oct 2021 19:18:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20SENSEBEE-7977:=20=E3=80=90label-bee?= =?UTF-8?q?=E3=80=91=E5=8D=95=E6=AD=A5=E9=AA=A4=E5=88=9B=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8CtoolHeader=20=E4=B8=8A=E6=96=B9?= =?UTF-8?q?=E7=9A=84=E6=97=8B=E8=BD=AC=E7=82=B9=E5=87=BB=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/MainView/toolHeader/headerOption/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/lb-components/src/views/MainView/toolHeader/headerOption/index.tsx b/packages/lb-components/src/views/MainView/toolHeader/headerOption/index.tsx index d053720cf..17d8935dc 100644 --- a/packages/lb-components/src/views/MainView/toolHeader/headerOption/index.tsx +++ b/packages/lb-components/src/views/MainView/toolHeader/headerOption/index.tsx @@ -39,7 +39,11 @@ const HeaderOption: React.FC = (props) => { const isBegin = props.isBegin || stepInfo?.tool === EToolName.Tag; const updateRotate = () => { - if (stepInfo.dataSourceStep !== 0) { + /** + * 1. 非第一步无法旋转 + * 2. 单步骤不存在 dataSourceStep + */ + if (stepInfo.dataSourceStep !== 0 && stepInfo.dataSourceStep !== undefined) { return; }