|
|
|
@ -130,8 +130,8 @@ const LeftMenuCom: FC<PageProps> = ({ data }) => {
|
|
|
|
|
setShowContextMenu(true); // 显示右键菜单
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleSelect = (selectedKeys: any, name: any) => {
|
|
|
|
|
selectedKeys[0] == 'root' ? eventBus.emit('hideFlag', false) : eventBus.emit('hideFlag', true);
|
|
|
|
|
const handleSelect = (selectedKeys: any, name: any) => {
|
|
|
|
|
(selectedKeys[0] == 'root' || selectedKeys.length == 0 ) ? eventBus.emit('hideFlag', false) : eventBus.emit('hideFlag', true);
|
|
|
|
|
setSelectedKeys(selectedKeys);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|