fix: 看板Hooks数据复位

This commit is contained in:
TsMask
2024-04-17 10:48:53 +08:00
parent 662583c73b
commit 432666b1ab
5 changed files with 68 additions and 24 deletions

View File

@@ -158,3 +158,15 @@ export function neStateParse(neType: string, data: Record<string, any>) {
// 请求标记复位
neStateRequestMap.value.set(neType, false);
}
/**属性复位 */
export function topologyReset() {
graphState.data = {
combos: [],
edges: [],
nodes: [],
};
graphG6.value = null;
graphNodeClickID.value = 'UPF';
neStateRequestMap.value = new Map();
}