Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
75908800
Unverified
Commit
75908800
authored
Apr 13, 2026
by
Wesley Liddick
Committed by
GitHub
Apr 13, 2026
Browse files
Merge pull request #1612 from touwaeriol/fix/qrcode-density
fix(frontend): lower QR code error correction level to reduce density
parents
7d80b5ad
24f0eebc
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/payment/PaymentQRDialog.vue
View file @
75908800
...
...
@@ -154,7 +154,7 @@ async function renderQR() {
await
QRCode
.
toCanvas
(
qrCanvas
.
value
,
qrUrl
.
value
,
{
width
:
220
,
margin
:
2
,
errorCorrectionLevel
:
logoSrc
?
'
H
'
:
'
M
'
,
errorCorrectionLevel
:
logoSrc
?
'
M
'
:
'
L
'
,
})
if
(
!
logoSrc
)
return
const
canvas
=
qrCanvas
.
value
...
...
frontend/src/components/payment/PaymentStatusPanel.vue
View file @
75908800
...
...
@@ -199,7 +199,7 @@ async function renderQR() {
if
(
!
qrCanvas
.
value
||
!
qrUrl
.
value
)
return
await
QRCode
.
toCanvas
(
qrCanvas
.
value
,
qrUrl
.
value
,
{
width
:
220
,
margin
:
2
,
errorCorrectionLevel
:
'
H
'
,
errorCorrectionLevel
:
'
M
'
,
})
}
...
...
frontend/src/views/user/PaymentQRCodeView.vue
View file @
75908800
...
...
@@ -94,12 +94,12 @@ async function renderQR() {
await
nextTick
()
if
(
!
qrCanvas
.
value
||
!
qrUrl
.
value
)
return
// Use
high
error correction to support logo overlay
// Use
medium
error correction to support logo overlay
while keeping QR code scannable
const
logoSrc
=
getLogoForType
()
await
QRCode
.
toCanvas
(
qrCanvas
.
value
,
qrUrl
.
value
,
{
width
:
256
,
margin
:
2
,
errorCorrectionLevel
:
logoSrc
?
'
H
'
:
'
M
'
,
errorCorrectionLevel
:
logoSrc
?
'
M
'
:
'
L
'
,
})
if
(
!
logoSrc
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment