fix: require is not defined

This commit is contained in:
Fang_Zhijian 2024-05-09 11:25:28 +08:00
parent 078dcff909
commit 0a9a9fbdb6

View File

@ -1,9 +1,9 @@
import {ref} from "vue";
import { Notyf } from 'notyf'
import { waveData } from "../assets/dataMap";
import QRCode from 'qrcode'
const notyf = new Notyf({ duration: 4000 })
const QRCode = require('qrcode')
let channelAStrength = 0; // A通道强度
let channelBStrength = 0; // B通道强度