Skip to content

Commit 8007c93

Browse files
committed
- bug(behaviorConfig)
1 parent 0a35235 commit 8007c93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/G6/behaviorConfig.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {IG6GraphEvent} from "@antv/g6-core/lib/types";
22
import {BehaviorOption} from "@antv/g6";
33
import {useNodeStore} from "@/store/node.ts";
44
import pinia from "@/store";
5-
import {INode} from "@antv/g6-core/lib/interface/item";
65

76
const nodeStore = useNodeStore(pinia);
87

@@ -13,7 +12,7 @@ export const activateNodeBehavior: BehaviorOption = {
1312
};
1413
},
1514
async onNodeClick(evt: IG6GraphEvent) {
16-
const node: INode = evt.item;
15+
const node = evt.item!;
1716
console.log(node.getModel().id);
1817
await nodeStore.updateData(node.getModel())
1918
},

0 commit comments

Comments
 (0)