Commit 1a08c929 authored by 李纪文's avatar 李纪文

fix: 修改

parent 0a73aa13
......@@ -72,6 +72,10 @@ const BasicTable = (props) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [cols]);
useEffect(() => {
setCols(props.columns);
}, [props.columns]);
return (
<Table
className={classNames(prefixCls)}
......
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