更新周边功能

This commit is contained in:
xiaoaojiao
2025-09-09 23:24:51 +08:00
parent 9a5cf53e3c
commit 246edb68ab
15 changed files with 644 additions and 344 deletions

View File

@@ -28,12 +28,12 @@ export const isBaseLogin = () => {
return Storage.get("userinfos")
// return true
}
export const generateQR = async (text) => {
export const generateQR = async (text, width = 160, height = 160) => {
return await QRCode.toDataURL(`${HOST}/${DIR}/?${text}`, {
errorCorrectionLevel: 'H',
width: 160,
height: 160,
margin:1,
width: width,
height: height,
margin: 1,
colorDark: "#000000",
colorLight: "#e8e2cc",
})