Commit 4d209a79 authored by zhengke's avatar zhengke

修复导出图片

parent f038ffb6
......@@ -7,7 +7,7 @@
v-for="slide in renderSlides"
:key="slide.id"
:slide="slide"
:size="1600"
:size="viewportRatio<1 ? VIEWPORT_SIZE : VIEWPORT_VER_SIZE"
/>
</div>
</div>
......@@ -79,6 +79,7 @@ import { computed, ref } from 'vue'
import { storeToRefs } from 'pinia'
import { useSlidesStore, useScreenStore } from '@/store'
import useExport from '@/hooks/useExport'
import { VIEWPORT_SIZE, VIEWPORT_VER_SIZE } from '@/configs/canvas'
import ThumbnailSlide from '@/views/components/ThumbnailSlide/index.vue'
import FullscreenSpin from '@/components/FullscreenSpin.vue'
......@@ -92,7 +93,7 @@ const emit = defineEmits<{
(event: 'close'): void
}>()
const { slides, currentSlide } = storeToRefs(useSlidesStore())
const { slides, currentSlide, viewportRatio } = storeToRefs(useSlidesStore())
const imageThumbnailsRef = ref<HTMLElement>()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment