some refactoring and make highlighter change when app changed

This commit is contained in:
xue jiahao
2024-11-11 15:21:28 +08:00
parent 1028327a37
commit a3375c4526
3 changed files with 22 additions and 25 deletions

View File

@@ -290,20 +290,8 @@ const onSaveAllFlow= async ()=>{
}
const fetchData = async () => {
await store.loadFlow();
drawerLeft.value = true;
if (store.appInfo === undefined) return;
const flowCtrl = new FlowCtrl();
const actionFlows = await flowCtrl.getFlows(store.appInfo?.appId);
if (actionFlows && actionFlows.length > 0) {
store.setFlows(actionFlows);
}
if (actionFlows && actionFlows.length == 1) {
store.selectFlow(actionFlows[0]);
}
const root = actionFlows[0].getRoot();
if (root) {
store.setActiveNode(root);
}
}
const onClearFilter=()=>{