import { useEditor } from "@/modules/editor"; import { useQRCode } from "@vueuse/integrations/useQRCode"; import { useClipboard } from "@vueuse/core"; import { Button } from "ant-design-vue"; import { defineComponent } from "vue"; export const ShareBox = defineComponent({ setup() { const { store } = useEditor(); let shareLink = location.origin + "/share.html?id=" + store.designData._id; if (location.host == "www.infish.cn") { shareLink = location.origin + "/projects/queenshow/share.html?id=" + store.designData._id; } const qrUrl = useQRCode(shareLink); const { copy, copied } = useClipboard(); return () => (