mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
fix(embed): wire local pinia into toolbar store usage
This commit is contained in:
@@ -123,8 +123,16 @@ import { ElMessageBox } from "element-plus";
|
||||
import { useGlobalMessage } from "@/ts/useGlobalMessage";
|
||||
import { getLogicFlowInstance } from "@/ts/useLogicFlow";
|
||||
import { useCanvasSettings } from '@/ts/useCanvasSettings';
|
||||
import type { Pinia } from 'pinia';
|
||||
|
||||
const filesStore = useFilesStore();
|
||||
const props = withDefaults(defineProps<{
|
||||
isEmbed?: boolean;
|
||||
piniaInstance?: Pinia;
|
||||
}>(), {
|
||||
isEmbed: false
|
||||
});
|
||||
|
||||
const filesStore = props.piniaInstance ? useFilesStore(props.piniaInstance) : useFilesStore();
|
||||
const { showMessage } = useGlobalMessage();
|
||||
const { selectionEnabled, snapGridEnabled, snaplineEnabled } = useCanvasSettings();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user