mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-24 10:33:47 +08:00
fix(flow-chart): dark style not work
This commit is contained in:
parent
5e36a8b575
commit
4a035478ca
@ -81,12 +81,13 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(
|
// TODO
|
||||||
() => appStore.getDarkMode,
|
// watch(
|
||||||
() => {
|
// () => appStore.getDarkMode,
|
||||||
init();
|
// () => {
|
||||||
}
|
// init();
|
||||||
);
|
// }
|
||||||
|
// );
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => unref(getFlowOptions),
|
() => unref(getFlowOptions),
|
||||||
@ -95,7 +96,6 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
let isInit = false;
|
|
||||||
// init logicFlow
|
// init logicFlow
|
||||||
async function init() {
|
async function init() {
|
||||||
await nextTick();
|
await nextTick();
|
||||||
@ -104,7 +104,7 @@
|
|||||||
if (!lfEl) {
|
if (!lfEl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!isInit) {
|
|
||||||
// Canvas configuration
|
// Canvas configuration
|
||||||
LogicFlow.use(Snapshot);
|
LogicFlow.use(Snapshot);
|
||||||
// Use the bpmn plug-in to introduce bpmn elements, which can be used after conversion in turbo
|
// 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
|
// Start the right-click menu
|
||||||
LogicFlow.use(Menu);
|
LogicFlow.use(Menu);
|
||||||
LogicFlow.use(DndPanel);
|
LogicFlow.use(DndPanel);
|
||||||
isInit = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
lfInstance.value = new LogicFlow({
|
lfInstance.value = new LogicFlow({
|
||||||
...unref(getFlowOptions),
|
...unref(getFlowOptions),
|
||||||
|
Loading…
Reference in New Issue
Block a user