fix: use local zxing-wasm file to resolve CSP issues in QrScanner

This commit is contained in:
2026-02-28 17:21:29 +00:00
parent 1c4bdeff0e
commit 90dc663393
4 changed files with 84 additions and 10 deletions

View File

@@ -6,9 +6,11 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"postinstall": "mkdir -p public/wasm && cp node_modules/zxing-wasm/dist/reader/zxing_reader.wasm public/wasm/"
},
"dependencies": {
"barcode-detector": "^3.1.0",
"lucide-vue-next": "^0.575.0",
"qrcode": "^1.5.4",
"vue": "^3.5.25",