This commit is contained in:
Julian Krauser 2025-07-12 17:13:32 +02:00
parent 98bf4532aa
commit 6c8c0939b4
8 changed files with 27 additions and 14 deletions

View file

@ -24,7 +24,7 @@
<script setup lang="ts">
import { defineComponent } from "vue";
import { mapState, mapActions } from "pinia";
import { useModalStore } from "../stores/modal";
import { useModalStore } from "@/stores/modal";
import {
barcodeFormats,
defaultConstraintOptions,
@ -32,7 +32,7 @@ import {
handleScannerError,
trackFunctionOptions,
type Camera,
} from "../helpers/codeScanner";
} from "@/helpers/codeScanner";
import { QrcodeStream, type DetectedBarcode } from "vue-qrcode-reader";
import { XMarkIcon } from "@heroicons/vue/24/outline";
</script>

View file

@ -49,7 +49,6 @@ export default defineComponent({
const fileURL = window.URL.createObjectURL(new Blob([response.data]));
const fileLink = this.$refs.download as HTMLAnchorElement;
fileLink.href = fileURL;
console.log(this.data);
fileLink.setAttribute(
"download",
this.data.others == "pdf" ? `${this.data.title}.pdf` : `${this.data.title}.png`