提交 4a035478 作者: Vben

fix(flow-chart): dark style not work

上级 5e36a8b5
......@@ -81,12 +81,13 @@
}
);
watch(
() => appStore.getDarkMode,
() => {
init();
}
);
// TODO
// watch(
// () => appStore.getDarkMode,
// () => {
// init();
// }
// );
watch(
() => unref(getFlowOptions),
......@@ -95,7 +96,6 @@
}
);
let isInit = false;
// init logicFlow
async function init() {
await nextTick();
......@@ -104,7 +104,7 @@
if (!lfEl) {
return;
}
if (!isInit) {
// Canvas configuration
LogicFlow.use(Snapshot);
// Use the bpmn plug-in to introduce bpmn elements, which can be used after conversion in turbo
......@@ -112,8 +112,6 @@
// Start the right-click menu
LogicFlow.use(Menu);
LogicFlow.use(DndPanel);
isInit = true;
}
lfInstance.value = new LogicFlow({
...unref(getFlowOptions),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论