diff --git a/web/client/src/sections/metadataManagement/components/releaseModal.js b/web/client/src/sections/metadataManagement/components/releaseModal.js index 052211d..62a4f4f 100644 --- a/web/client/src/sections/metadataManagement/components/releaseModal.js +++ b/web/client/src/sections/metadataManagement/components/releaseModal.js @@ -13,7 +13,7 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} }) const [fieldData, setFiedData] = useState([]) const [database, setDatabase] = useState({}) const [fieldValue, setFiedValue] = useState([]) - const [indeterminate, setIndeterminate] = useState(false) + const [checked, setChecked] = useState(false) const [fromData, setFromData] = useState([{ field: '', condition: '', value: '' }]) const [interfaceName, setInterfaceName] = useState('') const [interfaceUrl, setInterfaceUrl] = useState('') @@ -77,9 +77,9 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} })
选择字段
{/*
*/} - { + { setFiedValue(e.target.checked ? fieldList : []); - setIndeterminate(e.target.checked); + setChecked(e.target.checked); }}> 全选 @@ -88,9 +88,9 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} }) { setFiedValue(v) if (v?.length == fieldList?.length) { - setIndeterminate(true) + setChecked(true) } else { - setIndeterminate(false) + setChecked(false) } }} />