diff --git a/src/layouts/DrawLayout.vue b/src/layouts/DrawLayout.vue index eb3619d..685ffe0 100644 --- a/src/layouts/DrawLayout.vue +++ b/src/layouts/DrawLayout.vue @@ -2,9 +2,7 @@ - - - + @@ -143,20 +141,11 @@ import { onMounted, onUnmounted, reactive, ref } from 'vue'; import { useRoute } from 'vue-router'; const route = useRoute(); -const selectUtil = ref(); -const utilsOption: ControlItem[] = reactive([]); -const drawSelect = (item: string) => { - getDrawApp()?.interactionPlugin(item).resume(); -}; const drawStore = useDrawStore(); const leftDrawerOpen = ref(false); const rightDrawerOpen = ref(false); -function toggleLeftDrawer() { - leftDrawerOpen.value = !leftDrawerOpen.value; - onResize(); -} function toggleRightDrawer() { rightDrawerOpen.value = !rightDrawerOpen.value; onResize(); @@ -164,6 +153,12 @@ function toggleRightDrawer() { const link = ref('outbox'); +//工具栏所用 +const selectUtil = ref(); +const utilsOption: ControlItem[] = reactive([]); +const drawSelect = (item: string) => { + getDrawApp()?.interactionPlugin(item).resume(); +}; class ControlItem { value: string; slot: string;