mirror of
https://github.com/PlayEdu/backend
synced 2025-10-27 03:51:27 +08:00
资源分类组件label获取优化
This commit is contained in:
@@ -70,20 +70,14 @@ export const TreeCategory = (props: PropInterface) => {
|
||||
const onSelect = (selectedKeys: any, info: any) => {
|
||||
let label = "全部" + props.text;
|
||||
if (info) {
|
||||
label = info.node.title;
|
||||
label = info.node.title.props.children.props.children;
|
||||
}
|
||||
console.log(info);
|
||||
props.onUpdate(selectedKeys, label);
|
||||
setSelectKey(selectedKeys);
|
||||
};
|
||||
|
||||
const onExpand = (selectedKeys: any, info: any) => {
|
||||
let label = "全部" + props.text;
|
||||
if (info) {
|
||||
label = info.node.title;
|
||||
}
|
||||
props.onUpdate(selectedKeys, label);
|
||||
setSelectKey(selectedKeys);
|
||||
};
|
||||
const onExpand = (selectedKeys: any, info: any) => {};
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user