Commit 992ad72f by zhaochengxiang

删除警告

parent a21c2933
...@@ -6,8 +6,6 @@ import { showMessage } from '../../../../util'; ...@@ -6,8 +6,6 @@ import { showMessage } from '../../../../util';
import './AddTagModal.less'; import './AddTagModal.less';
const { TextArea } = Input;
const AddTagModal = (props) => { const AddTagModal = (props) => {
const { visible, onCancel, id, type, creator } = props; const { visible, onCancel, id, type, creator } = props;
...@@ -17,7 +15,6 @@ const AddTagModal = (props) => { ...@@ -17,7 +15,6 @@ const AddTagModal = (props) => {
const [ matchTags, setMatchTags ] = useState([]); const [ matchTags, setMatchTags ] = useState([]);
const [ options, setOptions ] = useState(); const [ options, setOptions ] = useState();
const [ confirmLoading, setConfirmLoading ] = useState(false); const [ confirmLoading, setConfirmLoading ] = useState(false);
const [ description, setDescription ] = useState('');
const [ tagForm, setTagForm ] = useState({}); const [ tagForm, setTagForm ] = useState({});
const [form] = Form.useForm(); const [form] = Form.useForm();
...@@ -29,6 +26,7 @@ const AddTagModal = (props) => { ...@@ -29,6 +26,7 @@ const AddTagModal = (props) => {
getSupportTagForm(); getSupportTagForm();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [ visible ]) }, [ visible ])
const getTagByKeywordAndCreator = (value=keyword) => { const getTagByKeywordAndCreator = (value=keyword) => {
...@@ -219,10 +217,6 @@ const AddTagModal = (props) => { ...@@ -219,10 +217,6 @@ const AddTagModal = (props) => {
} }
} }
const onDescriptionChange = (e) => {
setDescription(e.target.value);
}
const reset = () => { const reset = () => {
setConfirmLoading(false); setConfirmLoading(false);
setStep(0); setStep(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment