Commit df0e0d36 by zhaochengxiang

资产增加标签

parent 1bb2b90a
...@@ -13,10 +13,14 @@ const TagColumn = (props) => { ...@@ -13,10 +13,14 @@ const TagColumn = (props) => {
const [modal, contextHolder] = Modal.useModal(); const [modal, contextHolder] = Modal.useModal();
useEffect(() => { useEffect(() => {
getTags();
if ((id||'') !== '') {
getTags();
} else {
setOwnTags([]);
}
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, []) }, [id])
const getTags = () => { const getTags = () => {
dispatch({ dispatch({
......
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