更新周边功能
This commit is contained in:
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user