diff --git a/src/pages/Measure.tsx b/src/pages/Measure.tsx index e67de96..6f68e1f 100644 --- a/src/pages/Measure.tsx +++ b/src/pages/Measure.tsx @@ -172,7 +172,7 @@ export default function Measure() { }, [dispatch]) const onSaveClick = () => { - if (!contextState.currOrgCode) { + if (!contextState.currOrgCode || !orgTextArr) { Dialog.alert({ content: '请选择铁路局/工务段/线路', onConfirm: () => { @@ -246,7 +246,7 @@ export default function Measure() { }); return; } - if (!contextState.currOrgCode) { + if (!contextState.currOrgCode || !orgTextArr) { Dialog.alert({ content: '请选择铁路局/工务段/线路', onConfirm: () => {