Skip to content

Commit 4a03547

Browse files
committedApr 17, 2021
fix(flow-chart): dark style not work
1 parent 5e36a8b commit 4a03547

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed
 

‎src/components/FlowChart/src/index.vue

+15-17
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@
8181
}
8282
);
8383
84-
watch(
85-
() => appStore.getDarkMode,
86-
() => {
87-
init();
88-
}
89-
);
84+
// TODO
85+
// watch(
86+
// () => appStore.getDarkMode,
87+
// () => {
88+
// init();
89+
// }
90+
// );
9091
9192
watch(
9293
() => unref(getFlowOptions),
@@ -95,7 +96,6 @@
9596
}
9697
);
9798
98-
let isInit = false;
9999
// init logicFlow
100100
async function init() {
101101
await nextTick();
@@ -104,16 +104,14 @@
104104
if (!lfEl) {
105105
return;
106106
}
107-
if (!isInit) {
108-
// Canvas configuration
109-
LogicFlow.use(Snapshot);
110-
// Use the bpmn plug-in to introduce bpmn elements, which can be used after conversion in turbo
111-
LogicFlow.use(BpmnElement);
112-
// Start the right-click menu
113-
LogicFlow.use(Menu);
114-
LogicFlow.use(DndPanel);
115-
isInit = true;
116-
}
107+
108+
// Canvas configuration
109+
LogicFlow.use(Snapshot);
110+
// Use the bpmn plug-in to introduce bpmn elements, which can be used after conversion in turbo
111+
LogicFlow.use(BpmnElement);
112+
// Start the right-click menu
113+
LogicFlow.use(Menu);
114+
LogicFlow.use(DndPanel);
117115
118116
lfInstance.value = new LogicFlow({
119117
...unref(getFlowOptions),

0 commit comments

Comments
 (0)
Please sign in to comment.