generated from template/vite-react-template
add paycenter
This commit is contained in:
6
src/uitls/qrcode.ts
Normal file
6
src/uitls/qrcode.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import QRCode from 'qrcode';
|
||||
|
||||
export const generateQRCode = async (url: string) => {
|
||||
const qrCode = await QRCode.toDataURL(url);
|
||||
return qrCode;
|
||||
};
|
||||
Reference in New Issue
Block a user