数据结构重构优化

This commit is contained in:
unknown 2023-08-07 10:17:12 +08:00
parent 2348cfb54d
commit c2fb5c2243
2 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,6 @@ export const SelectResource = (props: PropsInterface) => {
maskClosable={false}
onOk={() => {
props.onSelected(selectKeys, selectVideos);
console.log(selectKeys, selectVideos);
setSelectKeys([]);
setSelectVideos([]);
}}

View File

@ -20,7 +20,7 @@ interface PropInterface {
export const TreeDepartment = (props: PropInterface) => {
const [treeData, setTreeData] = useState<any>([]);
const [loading, setLoading] = useState<boolean>(true);
const [selectKey, setSelectKey] = useState<any>([]);
const [selectKey, setSelectKey] = useState<number[]>([]);
const [userTotal, setUserTotal] = useState(0);
useEffect(() => {