|
@@ -19,29 +19,30 @@ const ContextMenu: React.FC<IProps> = props => {
|
|
|
setContextMenu(contextData);
|
|
|
}, [contextData]);
|
|
|
|
|
|
+ const handleSetcontextData = () => {
|
|
|
+ onSetContextData(null);
|
|
|
+ };
|
|
|
+
|
|
|
// 关闭右键菜单
|
|
|
const handleClose = () => {
|
|
|
setContextMenu(null);
|
|
|
+ handleSetcontextData();
|
|
|
};
|
|
|
|
|
|
// 执行此处
|
|
|
const handleRun = () => {
|
|
|
setContextMenu(null);
|
|
|
- handleSetcontextData;
|
|
|
+ handleSetcontextData();
|
|
|
};
|
|
|
// 执行到此处
|
|
|
const handleRunEndHere = () => {
|
|
|
setContextMenu(null);
|
|
|
- handleSetcontextData;
|
|
|
+ handleSetcontextData();
|
|
|
};
|
|
|
// 从此处开始执行
|
|
|
const handleRunBeginHere = () => {
|
|
|
setContextMenu(null);
|
|
|
- handleSetcontextData;
|
|
|
- };
|
|
|
- const handleSetcontextData = () => {
|
|
|
- console.log(onSetContextData);
|
|
|
- onSetContextData(null);
|
|
|
+ handleSetcontextData();
|
|
|
};
|
|
|
|
|
|
return (
|